cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Musicians, convert your MuseScore files to PDF to play music on the go! Learn more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bad error 400 on every API request!

bad error 400 on every API request!

MarkusF
New member | Level 2

Hi,

 

I´ve tired to implement the API upload and download in M5STack (Arduino).

On every request I get an bad error 400!

I´ve copied the header from API explorer, where all works fine!

Can anyone help please what does it mean, and what is the problem!?

 

my header and response:

 

POST /2/files/download
Host: https://content.dropboxapi.com
User-Agent: api-explorer-client
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dropbox-API-Arg: {"path":"/M5Stack_test/db_01.txt"}


HTTP/1.0 400 Bad Request
Content-Length: 11
Content-Type: text/plain
Date: Thu, 05 Nov 2020 08:28:04 GMT
Server: envoy
Connection: close

Bad Request

 

2 Replies 2

Здравко
Legendary | Level 20

Hi @MarkusF,

Try remove protocol name out of host name.

Hope this helps.

MarkusF
New member | Level 2

thanks for the very very fast replay!

now it works fine!

 

thanks very much

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    MarkusF New member | Level 2
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?