mmatela opened a new issue #15263:
URL: https://github.com/apache/superset/issues/15263


   I'm trying to import a CSV file as a dataset following the instructions 
here: 
https://stackoverflow.com/questions/66015739/use-apache-superset-api-to-feed-a-dataset
   At first id failed with a very generic error message, but after some 
investigation I realized that the `meatada.yaml` file should be inside the 
datasets folder instead of the root of the zip.
   Now the request is accepted, but the 200 OK response comes back immediately 
(certainly not enough time to download the SCV file) and no dataset is created 
in Superset.
   
   Sample file: 
[channels1.zip](https://github.com/apache/superset/files/6678278/channels1.zip) 
(it's a file from the examples folder, with `dabase_uuid` taken from my 
Superset's `dbs` table)
   
        curl -X 'POST' \
          'http://127.0.0.1:8088/api/v1/dataset/import/' \
          -H 'accept: application/json' \
          -H 'Authorization: Bearer 
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MjQwMzMzMzMsIm5iZiI6MTYyNDAzMzMzMywianRpIjoiZWJkZjAxZjItNzNiYy00YmQ2LTk5MjUtYzdlNWVjMjFiNjU3IiwiZXhwIjoxNjI0MDM0MjMzLCJpZGVudGl0eSI6MiwiZnJlc2giOnRydWUsInR5cGUiOiJhY2Nlc3MifQ.W6QkmZWxEMH15aDMNqwhuXPqd10l1r9xQR2XdhlK-ls'
 \
          -H 'Content-Type: multipart/form-data' \
          -F '[email protected];type=application/x-zip-compressed' \
          -F 'overwrite=true'
   
   Response body:
   
        {
          "message": "OK"
        }
   
   Nothing shows up in logs except for the standard access-log line.
   
   This is a test instance started using docker-compose, with the master branch 
cloned two days ago. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to