Don't understand how to upload a csv using the new api for it #28233
Unanswered
Neutrinzu
asked this question in
Q&A / Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm pretty new to Superset and APIs in general.
I'm trying to upload a csv file with the new csv_upload feature with the API. (#27840)
With the following Python function I only get
Error: 400 with the message "file":["Field may not be null."], "table_name":[Missing data for required field."
.Code Snippet:
If i print out
response.request.body
it seems that the contents of the file and the keys "file" and "table_name" are in there.I've tried to add "data" to the request post, which also containted the table name and file keys, but everything just responses to the error that the fields are empty.
Also uploading via form in the UI is working.
I'd appreciate some help.
Beta Was this translation helpful? Give feedback.
All reactions