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
error [500] - internal server error when trying to download dataset resource as json #6713
Comments
@tgurr @kowh-ai @TomeCirun is there a solution for this problem yet? I am running into the exact same issue. I can provide more details if necessary. E: I have found the problem for me. When going to the "Manage" > "DataStore" for the resource, I find that the DataStore has an invalid field; a text input in a numeric field. Removing these rows resolves the issue. |
I am working on this issue. |
Hi @tgurr I am successfully able to download the above mentioned csv file "https://github.com/ckan/ckan/files/8108382/2022_02_06-oberbuergermeisterwahl-stadt-heilbronn-heilbronner-stadtteile.csv" as json format. You can also check both the log file datapusher_error.log and ckan_http.error.log as well. Might be you are able to understand the reason of 500 internal server error in error log. |
@Nisha-1212 I use https://github.com/ckan/ckanext-xloader so I'm not sure if it also provides the mentioned
However I think I found something relevant in the log at
|
I'm not sure why the original (problem) CSV file: 2022_02_06-oberbuergermeisterwahl-stadt-heilbronn-heilbronner-stadtteile.csv seems to work now (I've just tested with a new CKAN 2.9.5 install and it works fine) but I will keep this issue open as it can be used in conjunction with PR #7063 |
I'm still having this problem with the dataset in question after updating to ckan 2.10.0, error thrown is slightly different but:
|
I get the same error (CKAN 2.9.7) as well with this test file. It is because of column containing all nulls (col This is the error when the null column is included:
|
[#6713] Fix datastore_search and dump datastore as json with null values
[ckan#6713] Fix datastore_search and dump datastore as json with null values # Conflicts: # ckanext/datastore/backend/postgres.py # ckanext/datastore/tests/test_search.py ## RESOLVED.
- Coalesce nulls to 'null' instead of skipping the row
- Coalesce nulls to 'null' instead of skipping the row
…g-2.10 [QOLSVC-3084] backporting JSON nulls fix for ckan#6713
CKAN version
2.9.5
Describe the bug
While downloading as json works for other resources on other datasets on the same system, it fails on a specific one with "Error [500] - Internal server error".
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Export/Download as JSON without error.
Additional details
I couldn't find anything in the logs, if you can give me any hint I'll gladly attach any information needed to identify the issue. DataStore processing Log view under the DataStore tab on the dataset in the webinterface doesn't show any problem, everything green.
Screenshot of the error:
The text was updated successfully, but these errors were encountered: