# WebSocket connection to xxx failed

**URL:** <https://forum.ansible.com/t/websocket-connection-to-xxx-failed/36880>\
**Category:** AWX Project\
**Tags:** awx, kubernetes\
**Created:** [July 21, 2022, 1:40am UTC](https://forum.ansible.com/t/websocket-connection-to-xxx-failed/36880 "2022-07-21T01:40:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaHo\_Lee](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@KaHo\_Lee](https://forum.ansible.com/u/KaHo_Lee)\
**Post date:** [July 21, 2022, 1:40am UTC](https://forum.ansible.com/t/websocket-connection-to-xxx-failed/36880/1 "2022-07-21T01:40:10Z")

</div>

### Please confirm the following

- I agree to follow this project’s [code of conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html).
- I have checked the [current issues](https://github.com/ansible/awx/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](https://us1.discourse-cdn.com/ansible/original/2X/e/ef5c98b114d429b5866c0a16f4791e744cd81f6d.png)

Nginx conf:

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/4/4e22164d1db0bde1382c8062961ac9acc827dea5.jpeg)

### 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

```auto
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_
