Jump to content

Andrew Lockwood

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Andrew Lockwood

  1. I have managed to request an authorization code, and convert it into an access token.

    However, when I then make a request using the access token, I get an "Unauthorised Access" error,  the JSON response being:-

    [{"$severity":"error","$dataCode":"AccessTokenVerificationError","$message":"Access token is invalid (JWT malformed or missing).","$source":"Authorization"}]

    I am not doing any encoding or decoding.  I am simply using the access token as it is presented to me.  

    Can anyone tell me what is going wrong?

  2. On 1/25/2022 at 10:51 AM, Joshua Press said:

    Just fixed the problem. 

    The problem was that I was using the code exactly as it came from the URL (encoded): GB%2Fxxxxxxxxxxxxxxx and that does not work. I've decoded the code, becoming something like: GB/xxxxxxxxxxxx and now it works.

    An easy fix actually, but I've overlooked it. Since this seems to be an often asked question, I hope this may help someone save a few hours. 

    Thanks!!!  It is a pity the official documentation cannot include such a simple, but critical bit of information.

×
×
  • Create New...