Intermittent 401 Unauthorized Error in Shipstation Workflow: How to Resolve?

This topic was automatically generated from Slack. You can find the original thread here.

Hello! I’m having an issue with a Shipstation workflow. The workflow is live and it’s working most of the time, but every once in a while I’ll get a 401 error (unauthorized). I’ll rerun the workflow (without making any changes) and it will work just fine. I was hoping someone could help me out with this one?

Error - Request failed with status code 401
"401 Unauthorized" 
    at null.createError (/pipedream/dist/code/dfa85592aacaf37c6365dda14eab045479940ed58475e3f4ac9fbae4d016d12c/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/createError.js:16:15)
    at null.settle (/pipedream/dist/code/dfa85592aacaf37c6365dda14eab045479940ed58475e3f4ac9fbae4d016d12c/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/pipedream/dist/code/dfa85592aacaf37c6365dda14eab045479940ed58475e3f4ac9fbae4d016d12c/node_modules/.pnpm/axios@0.21.4/node_modules/axios/lib/adapters/http.js:269:11)
    at IncomingMessage.emit (events.js:412:35)
    at null.endReadableNT (internal/streams/readable.js:1333:12)
    at process.processTicksAndRejections (internal/process/task_queues.js:82:21)

Hi Alex, since you’re seeing this issue intermittently and it’s a ShipStation API endpoint that is issuing the 401, I suggest that you open an issue with them. It’s possible there’s a problem on their API endpoint - especially if this is an API key based authentication system since the API key doesn’t cycle occasionally.