Discussions

Ask a Question
Back to All

Authentication returned "token contains an invalid number of segments"

Hi RoseRocket engineering team,

I am trying to set my Authentication up on v2 and am running into an invalid token error.

Here is the stack trace:
ResponseError: {"status":401,"headers":{"content-type":"application/json","retry-after":null},"content":"{"errors":[{"message":"token contains an invalid number of segments"}]}\n","request":{"url":"https://network.roserocket.com/api/v1/me?client_id=[client-id-redacted-here]&client_secret=[secret-redacted-here]&token=[token-redacted-here]"}}
at _throwForStatus (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/prepare-response.js:13:11)
at outResp.throwForStatus (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/prepare-response.js:70:5)
at throwForStatusMiddleware (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/throw-for-status.js:5:14)
at Object. (/var/task/node_modules/zapier-platform-core/src/middleware.js:80:37)


I have created an OAuth application, and am passing the client secret + client id values, and I am getting an invalid AccessToken response, so it basically is unable to be decoded. We ran this through jwt.io and the response is that it is not a valid JSON object.

Any advice here?