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

Forwarding localhost gives http: server gave HTTP response to HTTPS client #32

Open
ketozhang opened this issue Jul 16, 2024 · 0 comments

Comments

@ketozhang
Copy link

Webhook server accepts HTTP, but gh for some reason uses HTTPS.

$ gh webhook forward --repo=user/repo --events="*" --url="http://localhost/webhooks"
Forwarding Webhook events from GitHub...
warning: error forwarding event: Post "https://localhost/webhooks/": http: server gave HTTP response to HTTPS client
Error: error receiving json event: websocket: close 1006 (abnormal closure): unexpected EOF
❯ gh --version
gh version 2.52.0 (2024-06-24)
https://github.com/cli/cli/releases/tag/v2.52.0

❯ gh extension list
NAME        REPO            VERSION
gh webhook  cli/gh-webhook  v0.1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant