Why am I Suddenly Receiving an Error About Exhausted Attempts to Retrieve OAuth Access Token?

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

getting this error all of a sudden: {“status”:“error”,“error”:“ran out of attempts trying to retrieve oauth access token”}

How / where are you seeing that?

using connect, my call to create a connection token

const connectionToken = await pipedreamClient.createConnectToken({
            external_user_id: user.organization.id,
            success_redirect_uri: '/dashboard/integrations?status=success',
            allowed_origins: [
                'http://localhost:3000',
                'https://sandbox.voice-console.constellate.ai',
                'https://voice-console.constellate.ai',
            ],
        })

it was previously working, not sure what the issues is

I can’t get any more information out of the error

You’re consistently getting that error on the createConnectToken call?

yes

trying to add some logging into the minified code in the SDK to get to the root cause

gemini flagged a couple of things it could be, but needs more logging to figure out

Okay thanks I’m checking it out – did anything change with how you’re initializing the SDK?

nope, no changes

lol, found it. .env file got corrupted somehow

Ah okay, was just gonna say I’m not able to repro

would be nice if the error indicated the reason for the timeout e.g. a status code or error from the response so that it’s easier to figure out

Yea, chatting w/ eng about it now