Uplink behind an authenticated proxy

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?

1 Like

Hi Aldo,

This isn’t something we currently support (it’s missing in the websocket library we use), but the feature request has been noted!

If this is critical for you and you’re interested in sponsoring this feature, drop us a line at support@anvil.works. Otherwise, the number of likes this post gets is something we monitor to work out how many people need this feature!

2 Likes

Hy Meredydd
nothing critical for me by now.

Thanks and BR

Hello,

It’s been already almost 2y since this question was asked. Have you worked on this? It seems like it is not possible yet.

Thank you in advance. Best regards,

Ander