Forums

Connecting PythonAnywhere to Azure

How can I connect my python script to selenium grid server running on a remote server when I submit the form which deals with the script locally it works and connects just fine and does everything I want it to do but it's not the same case on pythonanywhere it just turns up a blank page.

You need to investigate the response your browser is getting from the server you try to connect to.

It’s getting the response 200 which means it’s working fine however nothing happens on the remote server and it did the same white blank page thing on my local server because there was a referencing error before but when I fixed that it worked the page that gets submitted would start showing the loading symbol like it’s trying to connect that’s how I know that the script is working and connected to selenium on remote server but on Python anywhere that is not the case I did use the url remote and use the IP of the remote server and port of selenium grid but nothing

Also for some reason I can’t ping my azure server I think it’s a firewall issue but I have allowed ports 443 and 80 to go through

Fixed it it was an issue with forms the information being entered and submitted was more than the allowed max characters pretty dumb that I wasn’t shown any hints of an error

Thanks for letting us know!