WebSocket connection to xxx failed

Please confirm the following

  • I agree to follow this project’s code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.

Bug Summary

When I ran some job on AWX, web console show an error:
WebSocket connection to 'wss://xxx.com/websocket/' failed: There was a bad response from the server.

I tried to access /websocket in pod that can be access with /#/, but it can’t access without /#/.
image

Nginx conf:
image

AWX version

21.2.0

Select the relevant components

  • UI
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

Safari

Steps to reproduce

Run some job on AWX, get error log on web console

2022-07-11 09:41:03,729 WARNING [-] awx.main.wsbroadcast Removing {'awx-demo-d85c77879-l5ktg'} from websocket broadcast list
2022-07-11 09:41:03,731 WARNING [-] awx.main.wsbroadcast Connection from awx-demo-d85c77879-8p5jw to 192.233.96.17 cancelled.
2022-07-11 09:41:33,173 INFO Header `X-API-Request-Id` was not found in the incoming request. Generated new GUID: b8ccdea3f4d949fa9c3b7e266cb932fe
2022-07-11 09:41:33,265 DEBUG [b8ccdea3f4d949fa9c3b7e266cb932fe] awx.analytics.performance request: <AsgiRequest: GET '/websocket/'>, response_time: 0.091s
2022-07-11 09:41:33,265 WARNING [b8ccdea3f4d949fa9c3b7e266cb932fe] django.request Not Found: /websocket/
2022-07-11 09:41:33,265 WARNING [b8ccdea3f4d949fa9c3b7e266cb932fe] django.request Not Found: /websocket/
2022-07-11 09:41:33,265 WARNING Not Found: /websocket/

Expected results

Websocket work fine

Actual results

Websocket work !fine

Additional information

No response