Skip to content

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

Open
@ketozhang

Description

@ketozhang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions