Artillery script throwing 401 error for wss websocket request with authorization header token #1159
Vikrant87-lego
started this conversation in
Artillery
Replies: 2 comments 2 replies
-
hi @Vikrant87-lego 👋 the script itself looks OK - can you confirm that the token is valid? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I got it resolved, i was using 'BaseURL/Websocket/ as target but updated as below: target:'BaseURL' and 401 error was gone |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi ,
I am facing issue where the Artillery request is throwing 401 error for websocket connect request sent with authorization headers:
config:
target: "wss://baseurl/websocket/"
phases:
- duration: 60
arrivalRate: 25
ws:
headers:
authorization: "Bearer TOKEN"
scenarios:
engine: ws
flow:
function:
Dont know what is wrong with this script. can anyone please helo me understand ?
BR,
Vikrant
Beta Was this translation helpful? Give feedback.
All reactions