I’m trying to replicate a websocket connection. In HTML code with JavaScript, the connection happens perfectly. However, using the same headers in python with websockets or websocket-client I receive the following error Handshake status 401 Unauthorized
{‘content-type’: ‘application/json; charset=utf-8’, ‘content-length’: ‘0’, ‘connection’: ‘close’, ‘date’: ‘Sun, 16 Jun 2024 22:56:20 GMT’, ‘x-cache’: ‘ Error from cloudfront’}