Skip to content

listening to webhook fails #20

@phernandez

Description

@phernandez

Listener errors with "Failed to decode event"

example

Forwarding Polar webhooks to http://localhost:8675/webhooks/polar
✔ Select Environment …  Sandbox
✔ Select Organization …  XXXXXX

  Connected  ...
  Secret     XXXXXXXXXX
  Forwarding http://localhost:8675/webhooks/polar

  Waiting for events...

>> 'checkout.created' >> 200 OK
>> 'checkout.created' >> 200 OK
>> 'checkout.updated' >> 200 OK
>> 'checkout.updated' >> 200 OK
>> 'customer.state_changed' >> 403 Forbidden
>> 'customer.updated' >> 200 OK
>> 'checkout.updated' >> 200 OK
>> 'order.updated' >> 200 OK
>> 'subscription.created' >> 200 OK
>> 'order.paid' >> 200 OK
>> 'subscription.updated' >> 200 OK
>> 'order.created' >> 200 OK
>> 'subscription.active' >> 200 OK
>> 'customer.state_changed' >> 403 Forbidden
>> 'order.updated' >> 200 OK
>> Failed to decode event
>> 'order.updated' >> 200 OK
>> Failed to decode event
[11:38:15.588] ERROR (#16):
  OAuthError: Event stream error
    at <anonymous> (/$bunfs/root/polar:84755:49)
    at scheduleReconnect_fn (/$bunfs/root/polar:48413:57)
    at <anonymous> (/$bunfs/root/polar:48319:232)
    at processTicksAndRejections (native:7:39) {
  [cause]: Error: {"isTrusted":false}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions