-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
HTTP/500 error when using csv_import API call #907
Comments
I've might found the code handling this in: kobocat/onadata/libs/utils/csv_import.py Line 61 in 72145d7
I've tried to create a minimal reproducer, but the following lines work fine with the exported file:
|
Hello @frenzymadness, This issue is related to Kobocat and API Due to the small size of our team and large volume of users, we cannot provide support or guidance via GitHub issues. |
Thank you very much for the response. I had a discussion about this on the community forum and it seems that csv import is really not functioning properly now. What is kinda confusing to me is that if v1 of API is deprecated, where I can find documentation for v2? When I try to visit https://kc.kobotoolbox.org/api/v2/ it redirects me back to v1 and there id no notice about it being deprecated. |
API |
I've transferred the issue to the appropriate repository. |
Description
I’m trying to import some data to an existing form and the response I’m getting from API is HTTP/500 with full HTML content which is not expected from an API.
Steps to Reproduce
curl -v -X GET https://kc.kobotoolbox.org/api/v1/forms/XXX.csv
curl -v -X POST https://kc.kobotoolbox.org/api/v1/forms/XXX/csv_import -u "user:pass" -F csv_file=@/home/user/XXX.csv
Expected behavior
Import is successful and if there is an error in the imported data, a meaningful error message is returned by the API.
Actual behavior
HTML page with HTTP/500 error.
Additional details
I need to import a few hundred of responses from our previous system so I wanted to learn about the structure of the CSV file expected by the kobo toolbox for the given form so I thought that the simple export/import should work. Is there any documentation of what should be in the CSV file one wants to import? It's obvious for responses to the questions from the form but less obvious for columns like
_id
or_uuid
.The text was updated successfully, but these errors were encountered: