Suddenly unable to retrieve the dynamically set & retrieve the environment variables in Auth tab

A couple of days when I installed apidog and imported several API collections/environments from Postman into ApiDog things worked and after a couple of days it stopped working.

I read through the documentation where it setting environment variables and similar to postman it supports defining environment variables in different environments. For now I have one environment that I’m running things through and for some reason when I try to set the environment variable accessToken in post processor tab dynamically via the authorization call it does not capture/store it in the environment variable resulting in subsequent calls made to endpoints throwing a 401 Not Authorized error. However, a couple of days ago it things worked as expected. Here are some screen shots.

Before when I would mouse over the {{AccessToken}} variable in the Auth tab it will display the current value. However, now it’s not being set. I am using the same environment in both the Authentication call to generate the token as I do the subsequent endpoint calls to ValidateEmail.



It seems no problem. You can switch to “actual request” to check if the access token was correctly sent.

I already verified switching from the environment variable {{accessToken}} to the actual value set in the Authentication call the ValidateEmail call works works. I’m just not sure why {{accessToken}} stopped working.

“actual request” tab shows that I’m sending Bearer {{accessToken}}

Did the console print the access token?

no, Console did not display anything

does console.log allow printing to work under this tab

the same code prints in Postman with no issues and the Auth call generates a different accessToken each time it’s called

So the script didn’t run. Did you check the box in front of the script?

Oh yes, you unchecked it.

yes, unchecked it so it should run

check it and it will run.

oh wow. I missed that.

In the dark mode it’s easy to be missed.

Thank you so much

Better in light mode.