gocardless / cli-releases

Release repo for the gocardless cli
Apache License 2.0
4 stars 3 forks source link

[BUG]: gc listen infinitely resends events #17

Open mauricedoepke opened 1 year ago

mauricedoepke commented 1 year ago

Describe the bug When using the gc listen command, the cli resends successfully acknowledged events over and over until the cli is closed.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://webhook.site/ to create a link for debugging webhooks
  2. Use the created link with the gc listen command, e.g.: gc listen --forward https://webhook.site/653ce959-f977-4053-a245-1b47dec3170d
  3. Do something that triggers a webhook event, e.g. creating a subscription for a user

Expected behavior The cli forwards the event only once, when the server responds with a http code 200. The cli should only retry forwarding the event if the server responds with an error code.

Screenshots

Screenshot 2022-12-24 at 22 24 29

Desktop (please complete the following information):