NetTalk Central

Author Topic: C11 OAuth does not work in Mercado Libre  (Read 6725 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
C11 OAuth does not work in Mercado Libre
« 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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: C11 OAuth does not work in Mercado Libre
« Reply #1 on: December 30, 2018, 09:38:13 PM »
please define "does not work" ?

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: C11 OAuth does not work in Mercado Libre
« Reply #2 on: December 31, 2018, 05:10:46 AM »
It always returns an old Token
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: C11 OAuth does not work in Mercado Libre
« Reply #3 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

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: C11 OAuth does not work in Mercado Libre
« Reply #4 on: December 31, 2018, 08:33:47 AM »
Any way to have the json sent and the server response?
Thanks
-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: C11 OAuth does not work in Mercado Libre
« Reply #5 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...
-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: C11 OAuth does not work in Mercado Libre
« Reply #6 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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: C11 OAuth does not work in Mercado Libre
« Reply #7 on: January 20, 2019, 11:00:39 PM »
sorry Alberto - not forgotten - just not got to this one yet...

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: C11 OAuth does not work in Mercado Libre
« Reply #8 on: March 20, 2019, 01:15:15 PM »
Just a remembering...
-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: C11 OAuth does not work in Mercado Libre
« Reply #9 on: April 24, 2019, 11:03:44 AM »
Please Bruce...
thanks
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: C11 OAuth does not work in Mercado Libre
« Reply #10 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