-
Notifications
You must be signed in to change notification settings - Fork 59
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
Fix forward_ports service and return useful nginx errors #265
base: main
Are you sure you want to change the base?
Fix forward_ports service and return useful nginx errors #265
Conversation
…rror-indicating-that-the-sandbox-port-is-not-open-e2b-1329
One consideration here—one of the other reasons why we had the old envd there was because of the compatibility with the old SDK for now. Does this change works when the old env is still present and tries to also forward the ports? |
It works with both running yeah, but :sad face: i was hoping we could stop using old envd for good |
…rror-indicating-that-the-sandbox-port-is-not-open-e2b-1329
@0div can you please replace the error message with following code? https://gist.github.com/mlejva/06d01a605eae36c9c330a8a6a5908afb Just replace
with the actual SVG code please The result should be this: ![]() Feel free to play with the actual wording |
Actually use this one please. I updated it to support dark theme as well. ![]() |
I tried inline but it's too big, I'm gonna have to load it as a file in that case, gonna require some changes in nginx config and how we provision the nomad job. |
Just to be sure we try all the options - have you tried minifying the code? |
Yep, doesn't seem to work, it can't find the closing quote even though i made sure there were no other quotes. |
@0div if this is content length problem, I think this could be fixed by changing the default value the |
…rror-indicating-that-the-sandbox-port-is-not-open-e2b-1329
…t-is-not-open-e2b-1329
…t-is-not-open-e2b-1329
Can nginx do something like template file? To have the base template as html as then just replace variables? |
@jakubno I didn't find any obvious out-of-the-box way of doing it purely via nginx. |
Description
Port forwaring
Use
iptables
to forward alllocalhost
<>fc-ip
ports instead of legacy port forwarding in envd-v0.0.1They missing key seems to be to enable
/proc/sys/net/ipv4/conf/eth0/route_localnet
Useful proxy error
When 502 happens at the session proxy (sandbox) level , we return a useful error depending on the user agent
Browser
API
Test
I built a template with this new provision and all js-sdk tests pass.