puma-dev icon indicating copy to clipboard operation
puma-dev copied to clipboard

http: proxy error: net/http: request canceled

Open resistorsoftware opened this issue 6 years ago • 10 comments

Not sure what these errors are about, but for sure, some incoming requests are not being forwarded to the correct ports, and my App is failing to respond to them... not sure why this is. Trying to debug. App responds to https://globby.test fine, but proxied incoming requests are not being handled well. Like hitting a black hole.

MacOS Catalina. Rails 6.

puma-dev -V

Version: v0.12 (go1.10.2)

tail -f ~/Library/Logs/puma-dev.log 2019/10/30 09:31:07 http: proxy error: net/http: request canceled

  • Generated proxy connection for 'webpack' to http://127.0.0.1:3035 2019/10/30 09:37:49 http: proxy error: dial tcp 127.0.0.1:3035: connect: connection refused ! Shutdown requested

  • Directory for apps: /Users/gloodel/.puma-dev

  • Domains: test

  • DNS Server port: 9253

  • HTTP Server port: inherited from launchd

  • HTTPS Server port: inherited from launchd ! Puma dev listening on http and https

  • Generated proxy connection for 'globby' to http://127.0.0.1:3038 2019/10/30 11:48:31 http: proxy error: net/http: request canceled

resistorsoftware avatar Oct 30 '19 15:10 resistorsoftware

Same issue here, same version! Just randomly occurs after a couple of hours or after my MacBook was in sleep mode. Easy to fix temporarily with running puma-dev -install again, than it works. But happens again and again.

Any ideas?

stebo avatar Nov 22 '19 08:11 stebo

I've noticed this happening too; perhaps something in a recent Mac silent software update triggered it?

lazyatom avatar Jan 09 '20 16:01 lazyatom

this looks like the same bug i'm getting every day

paulmars avatar Jan 25 '20 02:01 paulmars

Has anyone found out how to resolve this? Unfortunately re-running the puma-dev -install command again isn't working for me.

MichaelBeausoleil avatar Jan 28 '20 03:01 MichaelBeausoleil

Same here—re-running puma-dev --install doesn't seem to work anymore. I have to jump into activity monitor and force-quit puma-dev to get it running again.

brydave avatar Jan 30 '20 16:01 brydave

v0.13 was released yesterday. Do you mind upgrading and seeing if the issue persists?

nonrational avatar Mar 02 '20 15:03 nonrational

Upgrading, thanks for the follow up. I'll be back here when if new information comes up.

paulmars avatar Mar 02 '20 18:03 paulmars

I upgraded to v0.13 and this is still happening.

MichaelBeausoleil avatar Mar 18 '20 15:03 MichaelBeausoleil

@MichaelBeausoleil can you provide clear reproduction steps? (e.g. the contents of your ~/.puma-dev, configuration options, curls, etc)

I'm not sure if I'm reading the problem description correctly. The following works for me on the latest version of puma-dev.

# listen on 8000
$ python -m SimpleHTTPServer 8000
Serving HTTP on 0.0.0.0 port 8000 ...
$ echo 8000 > ~/.puma-dev/python

$ curl -v --silent http://python.test 2>&1 | grep 'HTTP/1.1'
> GET / HTTP/1.1
< HTTP/1.1 200 OK

nonrational avatar Mar 18 '20 16:03 nonrational

I had an issue with similar symptoms, and it ended up being rails middleware deadlocking. So its not really puma's fault, it sends stuff to the right place, and then the app just does nothing. If you see this issue and are running rails, have a look at ActionDispatch::DebugLocks, or add some logging in your very first middleware.

helanhalvan avatar Jan 19 '23 08:01 helanhalvan