MrAmonix opened a new issue #16030:
URL: https://github.com/apache/superset/issues/16030


   Hello!
   
   I tried to import a zip file of my databases (previously obtain using the 
/export route of the API) to my superset server but I keep getting redirected 
to /login (I tried something with csrf_token but I get the same redirection)
   
   There is may be something I am missing.
   
   ### Expected results
   
   I expect to be able to see my databases added to my superset server and 
receive a 200 OK response
   
   ### Actual results
   
   I am getting a redirection to /login 
   
   #### How to reproduce the bug
   
   I am using this curl:
   
   token is an access_token generate by the route /security/login
   
   curl -H "Authorization: Bearer $token" -H 'accept: application/json' -H 
'Content-Type: multipart/form-data' -F 
"[email protected];type=multipart/form-data" -X POST 
http://localhost:8088/api/v1/database/import/
   
   - superset version: `1.3`
   - python version: `3.7.9`
   - node.js version: `14`
   - any feature flags active: "ALERT_REPORTS": True, "VERSIONED_EXPORT": True
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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