- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2022 09:08 AM
Hi,
Has anyone ran into this issue and know how to solve it?
When running a background script from VSCode using the ServiceNow extension I get this output in red:
Error in executing script!
The script I am running is trivial:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2022 02:13 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 12:37 AM
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?