Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Failed to authenticate websocket connection" from Jmeter tool #350

Open
JJena opened this issue Aug 16, 2023 · 0 comments
Open

Error "Failed to authenticate websocket connection" from Jmeter tool #350

JJena opened this issue Aug 16, 2023 · 0 comments

Comments

@JJena
Copy link

JJena commented Aug 16, 2023

When file a bug report (see below for feature requests)

Please answer these quesions for a bug report. Thanks!

What version of GoTTY are you using (gotty --version)?

1.0.1

What operating system and browser are you using?

Linux amd64

What did you do?

I manually added a HTTP Sampler in Jmeter and made a GET request to localhost:8080. It didn't make the websock request by itself and didn't create any client connections. So I added the websocket sampler after the HTTP sampler. It created a connection but error displayed "Failed to authenticate websocket connection"

If possible, please provide the command you ran.
./gotty top

What did you expect to see?

Should have displayed the response for top command

What did you see instead?

"Failed to authenticate websocket connection"

If possible, please provide the output of the command and your browser's console output.

2023/08/16 22:15:40 10.1.6.252:63025 304 GET /
2023/08/16 22:15:40 10.1.6.252:63035 304 GET /js/gotty.js
2023/08/16 22:15:40 10.1.6.252:63034 200 GET /auth_token.js
2023/08/16 22:15:40 10.1.6.252:63036 304 GET /js/hterm.js
2023/08/16 22:28:38 New client connected: 10.1.6.252:64165
2023/08/16 22:28:59 Failed to authenticate websocket connection

When file a new feature proposal

Please provide an actual usecase that requires your new feature.
We have our load test image which can run lots of tests depending on the argument. So I started gotty with --permit-arguments. Manually from the browser all worked fine but want to simulate this from Jenkins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant