I am trying to setup an uplink server function but my server is behind an authenticated proxy.
I couldn’t find a way to specify proxy and auth credentials in the anvil.server.connect() api call.
The only other way I can think of is to setup proxy vars for python interpreter before executing the server code.
I tried that, as Administrator too:
Microsoft Windows [Version 10.0.17134.829]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>set_proxy
Setting https proxy vars...
Cleaning http proxy vars...
Done.
C:\WINDOWS\system32>cd \users\a.ercolani
C:\Users\a.ercolani>cd PycharmProjects
C:\Users\a.ercolani\PycharmProjects>cd AnvilUplinkDemo
C:\Users\a.ercolani\PycharmProjects\AnvilUplinkDemo>python UplinkDemo.py
Connecting to wss://anvil.works/uplink
And stays there forever, it never gives me the
Anvil websocket open
Authenticated OK
My way of setting up proxy works, this is how I set it up when using pip, so I am sure the set_proxy.bat batch does its job well.
Any ideas?