NetTalk Central

The Rest Of NetTalk => The Rest - Ask For Help => Topic started by: Alberto on December 27, 2018, 07:12:38 PM

Title: C11 OAuth does not work in Mercado Libre
Post by: Alberto on December 27, 2018, 07:12:38 PM
Hi Bruce, following the last emails where you confirm that in NT11 it works ok.
Ive tested it and it does not work.
Attached goes the app based on the OAuth example.
Regards
Title: Re: C11 OAuth does not work in Mercado Libre
Post by: Bruce on December 30, 2018, 09:38:13 PM
please define "does not work" ?
Title: Re: C11 OAuth does not work in Mercado Libre
Post by: Alberto on December 31, 2018, 05:10:46 AM
It always returns an old Token
Title: Re: C11 OAuth does not work in Mercado Libre
Post by: Bruce on December 31, 2018, 05:31:37 AM
If you watch it in Debugview, that's what the server is returning -
you might want to ask them why that's the case.

cheers
Bruce
Title: Re: C11 OAuth does not work in Mercado Libre
Post by: Alberto on December 31, 2018, 08:33:47 AM
Any way to have the json sent and the server response?
Thanks
Title: Re: C11 OAuth does not work in Mercado Libre
Post by: Alberto on December 31, 2018, 08:37:22 AM
Looking at DV Im getting:

5121   3.046644   5164   Meli_nt.exe   [st] [netTalk][thread=2] MatchSubjectWithURL [api.mercadolibre.com] =?= [api.mercadolibre.com]
5122   3.047657   5164   Meli_nt.exe   [st] [netTalk][thread=2] Certificate Verified: api.mercadolibre.com = api.mercadolibre.com
5123   3.265226   5164   Meli_nt.exe   [st] [netTalk][thread=2] NetSimple.ErrorTrap 0 Error connecting to Service. Server Response: 400 HTTP/1.1 400 Bad Request
5124   3.265226   5164   Meli_nt.exe   Content-Type: application/json;charset=UTF-8
5125   3.265226   5164   Meli_nt.exe   Transfer-Encoding: chunked
5126   3.265226   5164   Meli_nt.exe   Connection: keep-alive
5127   3.265226   5164   Meli_nt.exe   Date: Mon, 31 Dec 2018 16:34:12 GMT
5128   3.265226   5164   Meli_nt.exe   Vary: Accept,Accept-Encoding
5129   3.265226   5164   Meli_nt.exe   Cache-Control: max-age=0
5130   3.265226   5164   Meli_nt.exe   X-Content-Type-Options: nosniff
5131   3.265226   5164   Meli_nt.exe   X-Request-Id: 6a169c14-c524-4151-9374-f70065cbc5f3
5132   3.265226   5164   Meli_nt.exe   X-Frame-Options: DENY
5133   3.265226   5164   Meli_nt.exe   X-XSS-Protection: 1; mode=block
5134   3.265226   5164   Meli_nt.exe   Access-Control-Allow-Origin: *
5135   3.265226   5164   Meli_nt.exe   Access-Control-Allow-Headers: Content-Type
5136   3.265226   5164   Meli_nt.exe   Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS
5137   3.265226   5164   Meli_nt.exe   Access-Control-Max-Age: 86400
5138   3.265226   5164   Meli_nt.exe   Strict-Transport-Security: max-age=15724800
5139   3.265226   5164   Meli_nt.exe   X-Cache: Error from cloudfront
5140   3.265226   5164   Meli_nt.exe   Via: 1.1 92f892199bcce7a13a5283e1376fa0e8.cloudfront.net (CloudFront)
5141   3.265226   5164   Meli_nt.exe   X-Amz-Cf-Id: hHhmUxB0iyTHUon-YEU7oQWDU7aBRV7n2rWXa_TWbgcLniUCC2-GVw==
5142   3.265226   5164   Meli_nt.exe   
5143   3.265226   5164   Meli_nt.exe   {"message":"Wrong number of parameters","error":"invalid_request","status":400,"cause":[]} NetOAuth.PageReceived

See the last line...
Title: Re: C11 OAuth does not work in Mercado Libre
Post by: Alberto on January 04, 2019, 04:15:12 AM
Any help Bruce?
The last Debug line is:

{"message":"Wrong number of parameters","error":"invalid_request","status":400,"cause":[]} NetOAuth.PageReceived
Title: Re: C11 OAuth does not work in Mercado Libre
Post by: Bruce on January 20, 2019, 11:00:39 PM
sorry Alberto - not forgotten - just not got to this one yet...
Title: Re: C11 OAuth does not work in Mercado Libre
Post by: Alberto on March 20, 2019, 01:15:15 PM
Just a remembering...
Title: Re: C11 OAuth does not work in Mercado Libre
Post by: Alberto on April 24, 2019, 11:03:44 AM
Please Bruce...
thanks
Title: Re: C11 OAuth does not work in Mercado Libre
Post by: Bruce on April 25, 2019, 01:00:20 AM
Hi Alberto,

email me the current pClientId and pClientSecret - I fear the ones in your example are out of date now.

cheers
Bruce