Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$skiptoken results in error for repeat group of individual submission #622

Open
matthew-white opened this issue Apr 5, 2024 · 0 comments
Labels
backend Requires a change to the API server bug

Comments

@matthew-white
Copy link
Member

If I specify $skiptoken when fetching instances of a repeat group for an individual submission, I receive a 500 response. For example, on staging:

  1. Fetch the first instance of the repeat group r for the individual submission uuid:a43abf3f-d3be-4fab-ab04-56cc03e943d0:
    • GET /v1/projects/83/forms/repeat_int.svc/Submissions('uuid%3Aa43abf3f-d3be-4fab-ab04-56cc03e943d0')/r?%24
      top=1
  2. The response will have an @odata.nextLink with a $skiptoken. Send a request to that URL:
    • GET /v1/projects/83/forms/repeat_int.svc/Submissions('uuid%3Aa43abf3f-d3be-4fab-ab04-56cc03e943d0')/r?%24
      top=1&%24skiptoken=...
  3. Observe that the request results in a 500 response. When I check the service logs, I see:
TypeError: filtered.fiindIndex is not a function
    at /usr/odk/lib/formats/odata.js:513:25

Central version shown in version.txt

versions:
3a6a1890f3de66537d539bf028db7068250ae5a6 (v2023.5.1-4-g3a6a189)
+2bb17a501416814bbd987ddc953abc5b0c40c58a client (v2023.5.0-43-g2bb17a50)
+b626ba3973d758586901b9f6702200b0a88e0c9f server (v2023.5.0-48-gb626ba39)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Requires a change to the API server bug
Projects
None yet
Development

No branches or pull requests

1 participant