Skip to content

get_records() returning Filemaker Error 101, when no records exist, and _offset param used in request. #85

Description

@jpmilne360

So in Server class the get_records() method defaults limit and offset to 1 and 100
(def get_records(self, offset: int = 1, limit: int = 100,...)

Problem is I have a queue layout which may have no records by design

GET
https://server.com/fmi/data/v1/databases/db_name/layouts/queue_layout/records

If I send the default offset of 1, I get this (http status code 500)

{
"messages": [
{
"code": "101",
"message": "Record is missing"
}
],
"response": {}
}

Offset is kinda optional but as it has a default it still sends the param of 1. I tried 'None' but offset requires an int of course and has to be greater than zero.

The above fails my pytest tests.

My request is, please can '_offset' be made optional in the get_records method header like sort, portals, etc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions