You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we submit valid JSON data to the Datastore API but in a form that does not validate against the query schema, as expected we get a 400 error and some error output. However, submitting completely invalid JSON results in a 500 error.
This issue is specific to the "resource query" datastore endpoint. Submitting invalid JSON to the Metastore API, for instance, will return a 400 "Invalid JSON" response. The datastore should have the same behavior.
Expected Behavior
Submitting completely invalid JSON, such as
{
"foo": bar,
}
should result in a 400 error and some output.
Steps To Reproduce
POST https://demo.getdkan.org/api/1/datastore/query/cedcd327-4e5d-43f9-8eb1-c11850fa7c55/0 HTTP/1.1
{
"conditions": [
}
Relevant log output (optional)
The website encountered an unexpected error. Please try again later.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
When we submit valid JSON data to the Datastore API but in a form that does not validate against the query schema, as expected we get a 400 error and some error output. However, submitting completely invalid JSON results in a 500 error.
This issue is specific to the "resource query" datastore endpoint. Submitting invalid JSON to the Metastore API, for instance, will return a 400 "Invalid JSON" response. The datastore should have the same behavior.
Expected Behavior
Submitting completely invalid JSON, such as
should result in a 400 error and some output.
Steps To Reproduce
Relevant log output (optional)
Anything else?
No response
The text was updated successfully, but these errors were encountered: