-
-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] websocket connection ignore http_proxy and https_proxy #1121
Comments
Does this happen only for the desktop client? Or mobile client too? |
And by any chance, are you behind some VPN/firewall? |
only for desktop client.
yes I am using clash, I set http_proxy, https_proxy and all_proxy variables in linux. |
if i use tun mode of clash, that is let clash handles all the traffic by using a virtual network interface instead of passing environment variables like http_proxy, then the sync seems to work and the websocket can connect. so the problem might be the websocket ignores http_proxy, https_proxy and all_proxy variables? |
I am not too familiar with VPN and networking, so I can't give a definitive answer right now. What I can say is, the client will first make a http/https request to Appflowy cloud, then upgrade this connection to a websocket connection. But the established websocket connection, might not be going through the VPN, at least, without using tunneling. |
I believe websocket connection in appflowy doesn't read proxy settings from environment variables(*_proxy) or GNOME system proxy. I think this function should be implemented. For curl, they read wss_proxy or https_proxy if it isn't set. curl/curl#12031 |
Transferred to the cloud repo |
why is this issue closed? |
Sorry, I have reopened the issue. Let me update the title to better reflect the issue. |
Is this really a cloud server issue? Shouldn't the client take care of the proxy? |
The client library is in this repository, which is used by the frontend. https://github.com/AppFlowy-IO/AppFlowy-Cloud/blob/main/libs/client-websocket/src/native.rs |
Bug Description
I cannot sync with appflowy cloud, the log says websocket connection keeps trying.
for example, any modification locally in the client aren't synced to the cloud, ie I cannot see it in the web or android client.
I can indeed login and publish to web though. And the first time I login in a freshly installed client I can fetch all the synced pages.
How to Reproduce
open the app and sign in
Expected Behavior
everything syncs with the cloud
Operating System
archlinux
AppFlowy Version(s)
0.7.9
Screenshots
No response
Additional Context
logs here
The text was updated successfully, but these errors were encountered: