GraphQL Error 45 Invalid token – General Discussion – Sage X3

Hi all,

I get the error “Error 45: Invalid token” when trying to call sage X3 on premise GraphQL API.

The bearer authentication method is already added to my node local file.

I created the connected application.

I am generating the token using a vscode application created using this tutlorial link:

Creating the node.js client application | Sage Developer

This is my config.json file

I added x-xtrem-endpoint : seed in the header of my graphQL call in postman.

Can somebody help? And can we somehow get a list of what does every error code mean? Because every time I modify something in the app that generate to token or in the headers of the call in postman the error code change.

Read more here: Source link