Skip to content
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

502 badgateway error #506

Open
superharsha opened this issue Dec 13, 2024 · 14 comments
Open

502 badgateway error #506

superharsha opened this issue Dec 13, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@superharsha
Copy link

Describe the bug
A clear and concise description of what the bug is.
I am unable to ping my server on fragement. I can run the .sh command to start up my nextjs app in the sandbox and I get
the link that it is running on back as well, but the issue is that I keep getting 502 bad gateway nginx error.

Expected behavior
It worked fine earlier in the day, all the sudden it is giving me an error now when i try to access the server end point in the sandbox.

Browser console output
502 Bad Gateway
nginx/1.27.0

Terminal commands & output
INFO:httpx:HTTP Request: POST https://49983-i7iwe280qistx84jtsi8q-685e4066.e2b.dev/files?path=app%2Fpage.tsx&username=user "HTTP/1.1 200 OK"
INFO:nextjs_generator:Copied file to app/page.tsx
INFO:nextjs_generator:Sandbox Base URL: https://3000-i7iwe280qistx84jtsi8q-685e4066.e2b.dev

  • OS: Ubuntu
  • Browser Chrome
@superharsha superharsha added the bug Something isn't working label Dec 13, 2024
Copy link

linear bot commented Dec 13, 2024

@mlejva
Copy link
Member

mlejva commented Dec 13, 2024

hey @superharsha , can you reproduce it every time or is it seemingly random?

@superharsha
Copy link
Author

It worked completely fine earlier today, all the sudden I am unable to reach the server. Not sure how to fix, I tried to see the ports running after starting the nextjs server, but the port 3000 was not in use. Now it hasnt worked on my machine or a collaborators since that time.

@mlejva
Copy link
Member

mlejva commented Dec 13, 2024

Are you talking about an app create with Fragments that was created some time ago and you just shared a URL or does this happen every time you generate a new app with Fragments?

Can you please send a video showing the reproduction from start to the finish?

@superharsha
Copy link
Author

superharsha commented Dec 13, 2024 via email

@mlejva
Copy link
Member

mlejva commented Dec 13, 2024

it looks like the video is too large but heres all the code to reproduce. On Fri, Dec 13, 2024 at 3:52 PM Harsha Valluri @.> wrote:

Hi Vasek, Sending the video here for privacy. Best, Harsha On Fri, Dec 13, 2024 at 15:48 Vasek Mlejnsky @.
> wrote: > Are you talking about an app create with Fragments that was created some > time ago and you just shared a URL or does this happen every time you > generate a new app with Fragments? > > Can you please send a video showing the reproduction from start to the > finish? > > — > Reply to this email directly, view it on GitHub > <#506 (comment)>, or > unsubscribe > https://github.com/notifications/unsubscribe-auth/AOSEKCSTACKLSPHRUOBGI2L2FNI2VAVCNFSM6AAAAABTSY2UZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBSGQZTIOJZGQ > . > You are receiving this because you were mentioned.Message ID: > @.***> >

I don't think the code was sent

@superharsha
Copy link
Author

superharsha commented Dec 13, 2024 via email

@superharsha
Copy link
Author

superharsha commented Dec 13, 2024 via email

@mlejva
Copy link
Member

mlejva commented Dec 13, 2024

Can you please properly format your code? It's hard for me to get around in it and reproduce the example. Happy to connect, just want to reproduce the example first so I have more points

@superharsha
Copy link
Author

superharsha commented Dec 13, 2024 via email

@superharsha
Copy link
Author

superharsha commented Dec 13, 2024 via email

@mlejva
Copy link
Member

mlejva commented Dec 14, 2024

Yeah, my email is vasek at e2b.dev

@superharsha
Copy link
Author

superharsha commented Dec 14, 2024 via email

@superharsha
Copy link
Author

superharsha commented Dec 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants