Error during WebSocket handshake: Unexpected response code: 400 when deployed on google cloud

I have made an app of django channels and its working perfect locally,but when I deployed it to production (GCP) its giving me: (index):42 WebSocket connection to ‘wss://appname-263701.appspot.com/ws/chat/user2/’ failed: Error during WebSocket handshake: Unexpected response code: 400 I can’t figure whats the problem is, is it a problem of WSS? The app is working fine…

Details