-
-
Notifications
You must be signed in to change notification settings - Fork 150
Web Editor plugin not working behind proxy #147
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
Comments
Hi @oliver-gilmour-twi , |
we should put proxy settings vars in the config file of the agent itself if possible. |
We are now able to reproduce, detailed explanation here: |
I've started to look into this. I managed to reproduce the issue locally, and am now working on confirming the workaround that @mastrolinux linked. |
Since last posting here, I've gained a better understanding of what's happening, and I'm no longer sure about what was previously said in this issue. Fist, the editor communicates with the agent by making requests to Second, the article that @mastrolinux linked is about setting environment variables that configure Go programs (that use net/http) to use a proxy for making requests. I don't see how this applies here, for two reasons:
It is entirely possible that I'm missing something, as I'm not very familiar with arduino-create-agent yet, nor do I have much practical experience with HTTP proxies. If I'm wrong about my analysis, or am misunderstanding something about this issue, any guidance would be greatly appreciated. |
@hannobraun the fact is point 2. is not correct. On Windows environment variables are not available if the process runs as daemon, that's the issue, there is not env defined at all so there are no https_proxy and http_proxy variables available and we have to export them in the config.ini file. Point 1. is not correct too: the agent tries to download some tools available at https://downloads.arduino.cc and it fails because the agent is not configured to be behind a proxy. This is completely unrelated about localhost. |
@mastrolinux Thank you for your reply.
Understood, thank you.
Okay, I think I'm missing some context here. According to the issue description the connection to the agent doesn't seem to be working at all ("No Plugin Connection. Uploading is disabled until you reconnect"). There wasn't any mention of trying to download tools. Is your request to add proxy configuration to config.ini related to the original report, or is it something separate? I will add those options, no problem. At this point I'm just confused about what exactly this issue is about :-) |
The issue is the plugin does not work behind a proxy on windows while downloading other tools because of how Windows exports variables for deamons. We have to add a proxy config in the .ini file. |
Thank you, I understood that this is what you want after reading your previous comment, and I'm already working on it (still figuring out #199). I don't understand if this is related to the issue originally reported by @oliver-gilmour-twi, which is were my confusion comes from. |
Added instructions to set up proxy configuration |
For me it doesnt work, adding a Proxy. If I change the Agent to use the Proxy.ini it just closes the Plugin and thats it.
** |
Hi,
I couldn't find the previous issue so I copied the query.
arduino/Arduino#5939 (comment)
I'm using Windows7, 64 bit. The computer is a company one, so all internet traffic goes through HTTP proxy.
I'm also using Firefox 47.0.2.
I've installed the plugin, and that seems to be working (I see the green and black Arduino icon on the system tray), and I go to the Arduino Web Editor, but I keep getting the message "No Plugin Connection. Uploading is disabled until you reconnect".
I've installed the driver (because I've also installed desktop IDE - there's another bug there because of proxy implementation, but that's another story) and the system does recognise the Genuino MKR 1000 board. I just can't program it.
The text was updated successfully, but these errors were encountered: