Troubleshooting¶
Postman: Session expired or invalid¶
Problem: When calling a REST API (with Postman) you receive the following response, despite your access token being valid:
[{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]
The root cause is a "wrong" URL in the variables url and _endpoint.
Solution: As described in the Trailblazer Community, either:
- Enable the setting
Follow Authorization headerfor the call or - Set the correct URL for the environment variables
urland_endpoint. The correct URL is the one ending with.my.salesforce.comresp..sandbox.my.salesforce.com(shown on the login screen).