-
Notifications
You must be signed in to change notification settings - Fork 134
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
Error occured while trying to proxy to: localhost:3000/hello #19
Comments
hi, sorry i havent seen this error before. i'm on node 10.13.0 myself and it works fine. do you have any other environment/browser/OS situations that might be relevant to this case? |
am using nvm. have some other versions of node. but nothing else out of the ordinary |
no clue at all, sorry. i recommend you start with create-react-app, make sure that works, and then add netlify-lambda on top. i’ll record a video for you |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I followed the video too, and i get the same error :( Also on lts:carbon This is so weird. |
this is gonna sound really stupid but have you tried restarting your computer |
:) i just did. no effect :)
same thing 504 bad gateway
*Cezar Neaga*
*m:* +43 676 4445906
*s:* cezarneaga
*w:* https://cezarneaga.eu ( https://cezarneaga.eu/ )
*a:* Hackenbergweg 51/4, 1190, Vienna, Austria
Incorporated as Cezar Neaga e.U. in Austria
Company Reg. - Reg. Zl.: 104443F18
MBA 180/002363/2009 | St. Nr: 208/7497
VAT: ATU66988511
…On Fri, Jan 11, 2019 at 16:57:37, swyx < ***@***.*** > wrote:
this is gonna sound really stupid but have you tried restarting your
computer
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub (
#19 (comment)
) , or mute the thread (
https://github.com/notifications/unsubscribe-auth/AAnYazLwJsuRUUJK7la38TJQbF0J3tnmks5vCLRxgaJpZM4Z2SIm
).
|
note that the proxy we set up is ONLY for proxying from |
i know. clicking on the button returns the 504 |
happy to reopen the issue if you wanna share a repro, i have no idea how else to help you. |
Resurrecting an old thread to hopefully help someone out 💀. Maybe you have a collision on port 9000. try running netlify-lambda somewhere else don't forget to update your proxy config to match. |
I also wanted to add that I was getting the same 504 when I was trying to hit my netlify function. Configuring |
at this point i really recommend using netlify dev so you dont have to configure all this gunk :) |
My next project I will definitely start out using |
Happened to me when I forgot to put |
Error occurred while trying to proxy request /api/video/thumbnail from localhost:3000 to http://localhost:5001/ Sucks |
not sure if this is relevant but i had the same error all of a sudden. |
My team faces this issues somewhat frequently and a restart will (seem to*) solve it. |
I face this issue when I'm trying to proxy request from localhost:XXXX to localhost:YYYY |
Okay so I found some very strange behavior this past week regarding this issue. At this point I assume everyone having this issue is running the local dev env on MAC OS? I believe this to be a system level issue, but cannot say for certain.
I'm no networking expert so I'm pretty much done diving in at the moment.. hopefully YOU can take this research further! lol // happy hacking |
Aight so I'm becoming a networking expert after this latest update; three restarts and 504 each time. I've learned to reduce my Wireshark parameter input to just |
In react v18 the behavior has changed to allow DNS to resolve ipv4 or ipv6 in any order, ie use first provided by OS. With macOs 12.4 (21F79) I believe ipv6 is the default regardless of order provided in your hosts file. This may have more or less been random, chosen at restart, but the links provided go into this in more detail. My apache configuration was not setup to receive traffic from ipv6. Adding the listener as follows and restarting apache fixed this issue without a restart. httpd.conf
This solves // completes my research. Hopefully this info I've added here will help the next person. :) |
I've been reading through the thread and none of the solutions offered so far have fixed this issue for me — did anyone else come across another solution for this? I'm trying to proxy localhost:8081 to localhost:4000. |
im trying to connect my local host client to deployed api, im getting an error which says "Error occurred while trying to proxy: localhost:3000/v1/auth/signin". But if i change the target from deployed address to local address its working fine. Not sure why deployed address is working. |
i cannot seem to get it to work.
clean install, both with npm and yarn.
bad gateway 504 on all api calls
[HPM] Error occurred while trying to proxy request /hello from localhost:3000 to http://localhost:9000/ (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
node 10.15.0
The text was updated successfully, but these errors were encountered: