I have got the problem with my app.
It worked fine for long time and now somethign happend. I can not understand what is wrong here.
The problem is with oauth2 auth process.
The first step works fine. I call https://www.dropbox.com/oauth2/authorize with my client_id, redirect_url (it is registered in the app).
User approves access and dropbox redirects me back to the redirect_url and there is the code argument (access code).
When i call /oauth2/token to exchance this code for the access token , i have the http 400 error.
2020-11-04 08:19:43
> POST /oauth2/token HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 5.1) Chrome/23.0.1271.95 Safari/537.11
Host: api.dropboxapi.com
Accept: application/x-ms-application, image/gif, application/xaml+xml, *\/*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Mozilla/5.0 (Windows; U; Windows NT 5.1; uk; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Content-Length: 223
grant_type=authorization_code&code=Vwb***EU_yE&client_id=7cor***3&client_secret=******&redirect_uri=https%3A%2F%2Fdev7-roman-web1.*****.com%2Fdropbox_oauthcalback.htm
* upload completely sent off: 223 out of 223 bytes
< HTTP/1.1 400 Bad Request
< Content-Length: 11
< Content-Type: text/plain
< Date: Wed, 04 Nov 2020 08:19:10 GMT
< Server: envoy
< Connection: close
<
* Closing connection 12
Bad Request
WHat can be wrong with it? any idea?