Maik Skoddow
Tera Patron

Hi

for me it works fine: 

find_real_file.png

 

But I have noticed, that VSCode loses anyhow his connection to the ServiceNow instance after a long period of non-use. After restarting VSCode everything is fine again.

Maybe it also helps for you.

Kind regards
Maik

Thanks Maik, I've tried that already, sadly it does not. I've added further info to the original question with things I've tried a bit more info about DEV1 & DEV2 instances being clones from the same MAIN instance.

In fact, you have already done more than I could have advised.

As a workaround, I recommend using Xplore (https://developer.servicenow.com/connect.do#!/share/contents/9650888_xplore_developer_toolkit). This is my favorite execution console for scripts.

I hope you can find the root cause.

Kind regards
Maik

Finally found the answer after digging through the extension minified source code (that was painful).

 

All users I was testing with, had "Password needs reset" set to true. Which forces the execution of "Background Scripts" to redirect (with 302) to "login_cpw.do".

 

The execution of Background Script relies on a special type of "POST" which does not go through the regular API. So, it attempts to authenticate as a normal user.

 

The extension does not make this easy to identify, giving a cryptic useless message. Solution was to simply change the password  or change the flag to false.

 

There goes part of my sanity for 2022 yay.

 

View solution in original post

Imi NOW
Tera Contributor

I have no flag "Password needs reset" set to true, even I've tried to change the password but still getting the error in one of our instances. Any other ideas?