I'm currently running a node on a cloud machine and I'm running into several issues when trying to connect to it using the Polkadot Portal.
I've tried doing it in two ways, the first is by running the node using a docker image I've created and binding its ports. I have set up a reverse-proxy as per Polkadot's documentation (here). When I try accessing the node using the Polkadot Explorer, I get the following error in the console: WebSocket connection to 'wss://{cloud_ip_address}/' failed
.
This made me think it could be a problem with docker, so I tried running the node natively in the machine without using it. This proved to go at least one step further, since the node was able to receive the connection attempt, but then it says the following in the node's output:
Accepted a new tcp connection from {my_ip_address:random_port}.
WS Error <Http(Token)>: Invalid byte where token is required.
Could someone please help me understand what I am doing wrong and how I can connect to the cloud hosted node?
PS. The command used to run the node was:
./path/to/binary --chain ./chainSpecRaw.json --force-authoring --base-path /tmp/node \
--name "Test Node" --ws-external --rpc-external --rpc-cors all --allow-private-ipv4