• 0
Luciano Schafer

Problemas para autenticar con .NET

Question

Hola buen dia, estoy teniendo un problema a la hora de recibir el AccessToken en la funcion Authorize de la clase Meli.

Al ejecutar el request recibo un status code ok. El error me aparece en la siguiente linea 

                    var token = JsonConvert.DeserializeAnonymousType(response.Content, new
                    {
                        refresh_token = "",
                        access_token = "",
                        expires_in = 0,
                        user_id = "",
                        scope = "",
                        token_type = ""
                    });

Y el error es el siguiente: "Unexpected character encountered while parsing value: <. Path '', line 0, position 0."

El ContentType del response es "text/html; charset=utf-8", esto me parece raro porque la función esta esperando un json.

Muchas gracias

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now