mercadolibre / python-sdk

MercadoLibre's Python SDK
131 stars 111 forks source link

Issue on generating the token #20

Closed arpitb827 closed 4 years ago

arpitb827 commented 6 years ago

Hi,

I tried to call authorize function for generating the token founding the error below.

Can you please help me on it.

Thanks Arpit

meli.authorize('TG-5a58c14fe4b0ff39be25d772-295295916', redirect_URI="https://bb6b4a5f.ngrok.io") Traceback (most recent call last): File "", line 1, in File "build/bdist.linux-x86_64/egg/melipy/core.py", line 49, in inner File "build/bdist.linux-x86_64/egg/melipy/core.py", line 89, in authorize File "/usr/lib/python2.7/dist-packages/requests/models.py", line 840, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.mercadolibre.com/oauth/token?code=TG-5a58c14fe4b0ff39be25d772-295295916&client_secret=Fn9k3FXuyPw921whwdtXJDAbGp2Ax4t9&grant_type=authorization_code&client_id=5961429306344932&redirect_uri=https%3A%2F%2Fbb6b4a5f.ngrok.io

celm1990 commented 6 years ago

Hello,

I get same error, yesterday work fine, today get error, because???. Any update on api or python library???

celm1990 commented 6 years ago

With Curl get response: image With Python get error image

celm1990 commented 6 years ago

Error is on Redirect URI, must be equals to configured on application