stakater / GitWebhookProxy

A proxy to let webhooks reach running services behind a firewall – [✩Star] if you're using it!
https://stakater.com
Apache License 2.0
188 stars 52 forks source link

unmarshaling failed for Pull Request event: invalid character 'p' looking for beginning of value #88

Closed jrobison-sb closed 4 years ago

jrobison-sb commented 4 years ago

I'm running stakater/gitwebhookproxy:v0.2.75 with GWP_SECRET exposed as an environment variable and with this command passed into docker:

        "-allowedPaths", "/events",
        "-upstreamURL", "http://MY_UPSTREAM_HOSTNAME:8080",

When I trigger a webhook at GitHub, the hook isn't proxied as expected, with this error shown in the logs:

Github payload unmarshaling failed for Push event: invalid character 'p' looking for beginning of value

What is going wrong here?

w32-blaster commented 4 years ago

Seeing the same error. @jrobison-sb have you found a solution for this issue?

jrobison-sb commented 4 years ago

@w32-blaster unfortunately my solution/workaround was to use a different proxy software.

w32-blaster commented 4 years ago

Any recommendation? :)

w32-blaster commented 4 years ago

Hey @jrobison-sb , I just figured out what was wrong with my config. You have to make sure that the webhook content type is application/json. That will solve the above issue.

jrobison-sb commented 4 years ago

@w32-blaster oh, cool, thanks for the update.

Since this was apparently just user error on my part, I'll close this issue now.