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

fix: Go SDK can't set an empty list of callbacks, so don't attempt to do so #70

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

paddycarey
Copy link
Contributor

This is a bug in the SDK, but also a general issue with Go.

We need to update the client to remove the callback URL we added previously, but if that results in an empty callback list, then Go will helpfully omit the callbacks property before sending (due to omitempty) and thus send an empty request to the manage API :(

@paddycarey paddycarey requested review from cyx and jfatta January 27, 2021 14:11
Copy link
Contributor

@jfatta jfatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch 🪲

@paddycarey paddycarey merged commit ffb9c62 into main Jan 27, 2021
@paddycarey paddycarey deleted the fix-callback-removal branch January 27, 2021 14:16
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

Successfully merging this pull request may close these issues.

2 participants