access_token for authorised API requests in API v2

  • miles1991-1301221869940248687

    Miles

    6 months ago

    I'm struggling to set up the headers in v2 to send the access_token to the endpoint. I've attached an image of the set up and an image of the header xano is receiving. It's not inserting the access token. Any help is appreciated. thanks 🙂
    1301221870154027081-image.png
    1301221870464667708-image.png
    1301221870833504307-image.png
  • nocodeprocode-1301243661060931624

    NoCode ProCode

    5 months ago

    Shit
  • nocodeprocode-1301244007585808475

    NoCode ProCode

    5 months ago

    @Andreas Møller - Sorry, I may have added V2 in a paid template (the one with the 20h course) and people possibly have been copying it across projects.
  • lucasg-1301244178637914113

    Lucas G

    5 months ago

    lol
  • I guess more feedback/testing 😅
  • andreasmoller-1301244452203139142

    Andreas Møller

    5 months ago

    It is ok it adds to the mystery
  • lucasg-1301244466195337248

    Lucas G

    5 months ago

    @Miles v2 isn't released for public use yet. Might want to change that API to a regular one in the meantime
  • Though that part should be working just fine 🤔
  • andreasmoller-1301246206135242852

    Andreas Møller

    5 months ago

    Do you have the browser plugin installed ? And do you currently have the access_token cookie?
  • miles1991-1301247041053397063

    Miles

    5 months ago

    Apologies if I've shared something I shouldn't have? 😐

    @Andreas Møller yes browser is installed and I can see the access token is there.

    @NoCode ProCode I set this up myself, I have beta access.

    Is there a specific thread I should be asking about V2 in?
  • nocodeprocode-1301247124452937821

    NoCode ProCode

    5 months ago

    Thank you 😉
  • nocodeprocode-1301247260046262333

    NoCode ProCode

    5 months ago

    Oh ok - shit, so I spoiled the thing without need LOL
  • andreasmoller-1301249371047985233

    Andreas Møller

    5 months ago

    It looks correct. What response are you getting?
  • miles1991-1301253994001203333

    Miles

    5 months ago

    {"code":"ERROR_CODE_UNAUTHORIZED","message":"Invalid token.","payload":null,"traceId":"3fbd3bc0-f4dc-4a8d-9dbe-f655cdd2bcb6"}
  • andreasmoller-1301255843605512303

    Andreas Møller

    5 months ago

    Ok. Are you sure you have the right token?
  • miles1991-1301259766437384243

    Miles

    5 months ago

    It seems to be correct. Am I right in thinking it's not being inserted? And I should see it in the request headers?
  • andreasmoller-1301259985434579116

    Andreas Møller

    5 months ago

    No you should see the placeholder in the request in the browser
  • Is pricing turned on under advanced
  • Proxying
  • miles1991-1301263336540868609

    Miles

    5 months ago

    Sorry I mean in the server (not browser)
  • 282143925291057163-@Andreas Møller
    Proxying
    miles1991-1301263377099653171

    Miles

    5 months ago

    Will check
  • miles1991-1301264615992459358

    Miles

    5 months ago

    Proxy was off. Turned on. Same error
    1301264616143458424-image.png
  • 1301264687018672149-image.png
  • miles1991-1301265958991560755

    Miles

    5 months ago

    I think I have some issues in my server. Will review and update.
  • miles1991-1301266459523285081

    Miles

    5 months ago

    Yes, was an error in my server. Solved. Well technically there was nothing to solve. Oops. 🙂
  • andreasmoller-1301266491139952673

    Andreas Møller

    5 months ago

    🙂
  • Glad I couldn't help
    😂1
  • nocodeprocode-1301273809164308542

    NoCode ProCode

    5 months ago

    Happy to help at OH 😉