Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

PS invoke-webrequest fails with unauthorized

Aditya Sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 12, 2025

Hi Guys,

I have been connecting to jira enterprise for long time now and suddenly the invoke-webrequest powershell script with authorization header (with pat ) stops working and just throws unauthorized.

The same pat token works with c# code to call the rest api and even works with curl. Any help or idea will help me correct my invoke-webrequest because this was working before but not sure after which version of atlassian invoke-webrequest has stopped working.

My internal team is also not able to help either on this.

 

0 answers

Suggest an answer

Log in or Sign up to answer