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
Statuses endpoint failed on submission made via ODK #1478
Comments
endpoint works fine, but when submission is made how odk collect sends status to the odk central? it is passing quoted task status . For eg: 'status' : ' "2" '. |
Interesting! The integer value needs to be quoted, as Entity fields can only be string type. But it looks like double quoting that needs to be fixed. Not sure why that would cause a 500 though! |
Got a validation error since the quoted index won't match the enum. |
Fantastic - great debugging! Do you think this could be caused by the XLSForm? The My assumption is that there is already logic in ODK Collect to wrap the values in quotes before sending to Central. |
@spwoodcock, currently the /statuses api would return thousands of statuses of features of the entire project. Is returning the statuses of the features bound to that task would be a good approach? like when a user clicks a task then |
It's not so easy to do that unfortunately, as the Are you seeing performance issues with the approach? |
It wastn't a performance issue. It was the issue with debug console😆. I had consoled inside the getFeatureStyle where the website was too much laggy and unresponsive during console. But consoling after debug commenting console woked perfectly fine. |
Describe the bug
/Statuses
endpoint throws 500 error after building submission made via ODK.To Reproduce
Steps to reproduce the behavior:
/statuses
endpoint is hit and the response status is 200)/statuses
endpointExpected behavior
/statuses API should not throw a 500 error even if a submission is made.
Screenshots
If applicable, add screenshots to help explain your problem.
Before submission was made:
After submission was made:
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: