Skip to content

handshake error 403 forbidden #53

@ashishasolkar

Description

@ashishasolkar

I have hosted python code on azure vm with location central india. Also whitelisted the public ip of vm. Current calling apis from demo delta exchange account. but facing below error while websocket connection.

Code used to connect to websocket =>

self.ws_app = websocket.WebSocketApp("wss://[socket-ind.testnet.deltaex.org](http://socket-ind.testnet.deltaex.org/)",
                                            on_message=self.on_message,
                                            on_error=self.on_error,
                                            on_close=self.on_close)
            self.ws_app.on_open = self.on_open
            self.ws_app.run_forever()

Error thrown as below
ERROR | Handshake status 403 Forbidden -+-+- {'server': 'CloudFront', 'date': 'Sun, 18 May 2025 10:01:38 GMT', 'content-type': 'text/html', 'content-length': '919', 'connection': 'close', 'x-cache': 'Error from cloudfront', 'via': '1.1 a2fa8da1616657e3e8f0c0227e7b5862.cloudfront.net (CloudFront)', 'x-amz-cf-pop': 'DEL54-P6', 'x-amz-cf-id': 'l7O2lLKB31C5koorBFcJYJO5opIQAShOPnA_FgFdb1E4CC_d4AC7AA=='} -+-+- b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4

Kindly help in fixing this error and let me know incase more details are required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions