[GH-ISSUE #53] io error on http2 #25

Closed
opened 2026-05-05 10:57:26 -06:00 by gitea-mirror · 20 comments
Owner

Originally created by @radutopala on GitHub (Nov 23, 2017).
Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/53

I get this error: io error: Put http://localhost/login: http2: unsupported scheme .. what could be the problem?

Originally created by @radutopala on GitHub (Nov 23, 2017). Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/53 I get this error: `io error: Put http://localhost/login: http2: unsupported scheme` .. what could be the problem?
Author
Owner

@mmatczuk commented on GitHub (Nov 23, 2017):

http2:// in config file?

<!-- gh-comment-id:346598106 --> @mmatczuk commented on GitHub (Nov 23, 2017): `http2://` in config file?
Author
Owner

@radutopala commented on GitHub (Nov 23, 2017):

I was accessing http://localhost in browser. If I access http://localhost/login it works fine .. I think the underlying app (PHP Symfony app) I'm accessing does not support http2.. still investigating.

<!-- gh-comment-id:346599045 --> @radutopala commented on GitHub (Nov 23, 2017): I was accessing `http://localhost` in browser. If I access `http://localhost/login` it works fine .. I think the underlying app (PHP Symfony app) I'm accessing does not support http2.. still investigating.
Author
Owner

@mmatczuk commented on GitHub (Nov 23, 2017):

Does it work with http://localhost/ (note the slash)

You need to provide some more context anyway.

<!-- gh-comment-id:346599602 --> @mmatczuk commented on GitHub (Nov 23, 2017): Does it work with http://localhost/ (note the slash) You need to provide some more context anyway.
Author
Owner

@radutopala commented on GitHub (Nov 23, 2017):

@mmatczuk I use an apache without http2 support, could that be the cause?

<!-- gh-comment-id:346602064 --> @radutopala commented on GitHub (Nov 23, 2017): @mmatczuk I use an apache without http2 support, could that be the cause?
Author
Owner

@mmatczuk commented on GitHub (Nov 23, 2017):

No, the error is that you try to call "http" instead of "https" the question is where.

<!-- gh-comment-id:346602638 --> @mmatczuk commented on GitHub (Nov 23, 2017): No, the error is that you try to call "http" instead of "https" the question is where.
Author
Owner

@radutopala commented on GitHub (Nov 23, 2017):

Was reading this .. https://stackoverflow.com/questions/34468231/how-do-i-make-a-http2-only-request-over-http-in-go .. so do we need to use only https with the tunnel?

<!-- gh-comment-id:346610429 --> @radutopala commented on GitHub (Nov 23, 2017): Was reading this .. https://stackoverflow.com/questions/34468231/how-do-i-make-a-http2-only-request-over-http-in-go .. so do we need to use only https with the tunnel?
Author
Owner

@mmatczuk commented on GitHub (Nov 23, 2017):

No, tuneld -httpAddr :8080 -httpsAddr "" you can start server with both http and https send proper messages to proper ports.

<!-- gh-comment-id:346611340 --> @mmatczuk commented on GitHub (Nov 23, 2017): No, `tuneld -httpAddr :8080 -httpsAddr ""` you can start server with both http and https send proper messages to proper ports.
Author
Owner

@radutopala commented on GitHub (Nov 23, 2017):

I did start the server with tunneld -httpAddr :80 -httpsAddr "" and the same error appears in browser, but only when a redirect is happening from within the app..

<!-- gh-comment-id:346613332 --> @radutopala commented on GitHub (Nov 23, 2017): I did start the server with `tunneld -httpAddr :80 -httpsAddr ""` and the same error appears in browser, but only when a redirect is happening from within the app..
Author
Owner

@mmatczuk commented on GitHub (Nov 23, 2017):

Probably the location is wrong. Could you share some more details.

<!-- gh-comment-id:346614319 --> @mmatczuk commented on GitHub (Nov 23, 2017): Probably the location is wrong. Could you share some more details.
Author
Owner

@radutopala commented on GitHub (Nov 23, 2017):

@mmatczuk I can't really publicly share all the config.. but I'm happy to have a Skype or Hangouts share screen if you can..

<!-- gh-comment-id:346614701 --> @radutopala commented on GitHub (Nov 23, 2017): @mmatczuk I can't really publicly share all the config.. but I'm happy to have a Skype or Hangouts share screen if you can..
Author
Owner

@mmatczuk commented on GitHub (Nov 23, 2017):

Drop me an email then.

<!-- gh-comment-id:346615092 --> @mmatczuk commented on GitHub (Nov 23, 2017): Drop me an email then.
Author
Owner

@radutopala commented on GitHub (Nov 23, 2017):

Pls check https://github.com/golang/net/blob/master/http2/transport.go#L348..

<!-- gh-comment-id:346616392 --> @radutopala commented on GitHub (Nov 23, 2017): Pls check https://github.com/golang/net/blob/master/http2/transport.go#L348..
Author
Owner

@radutopala commented on GitHub (Nov 23, 2017):

@mmatczuk have sent you an email at michal@scylladb.com.

<!-- gh-comment-id:346617494 --> @radutopala commented on GitHub (Nov 23, 2017): @mmatczuk have sent you an email at michal@scylladb.com.
Author
Owner

@radutopala commented on GitHub (Nov 23, 2017):

@mmatczuk on my end it's pretty clear that if the app sends a redirect, this redirect is not valid in http2 for some reason..

<!-- gh-comment-id:346629922 --> @radutopala commented on GitHub (Nov 23, 2017): @mmatczuk on my end it's pretty clear that if the app sends a redirect, this redirect is not valid in http2 for some reason..
Author
Owner

@radutopala commented on GitHub (Nov 23, 2017):

@mmatczuk so.. does it makes any sense? 😄

<!-- gh-comment-id:346631354 --> @radutopala commented on GitHub (Nov 23, 2017): @mmatczuk so.. does it makes any sense? 😄
Author
Owner

@radutopala commented on GitHub (Nov 23, 2017):

@mmatczuk is there a way to fix this?

<!-- gh-comment-id:346649946 --> @radutopala commented on GitHub (Nov 23, 2017): @mmatczuk is there a way to fix this?
Author
Owner

@mmatczuk commented on GitHub (Nov 23, 2017):

PRs are welcome.

<!-- gh-comment-id:346650170 --> @mmatczuk commented on GitHub (Nov 23, 2017): PRs are welcome.
Author
Owner

@mmatczuk commented on GitHub (Nov 23, 2017):

@radutopala thanks for reporting, can you try https://github.com/mmatczuk/go-http-tunnel/pull/55.

<!-- gh-comment-id:346709585 --> @mmatczuk commented on GitHub (Nov 23, 2017): @radutopala thanks for reporting, can you try https://github.com/mmatczuk/go-http-tunnel/pull/55.
Author
Owner

@radutopala commented on GitHub (Nov 24, 2017):

@mmatczuk I can confirm this is fixed on #55.

<!-- gh-comment-id:346752121 --> @radutopala commented on GitHub (Nov 24, 2017): @mmatczuk I can confirm this is fixed on #55.
Author
Owner

@mmatczuk commented on GitHub (Nov 24, 2017):

Fied by #55

<!-- gh-comment-id:346787729 --> @mmatczuk commented on GitHub (Nov 24, 2017): Fied by #55
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/go-http-tunnel#25
No description provided.