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: handle DELETE response correctly in Mailchimp member removal ❗️ #666

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Fix error when removing Mailchimp members by properly handling DELETE response without attempting to parse JSON.

The DELETE request to remove a member from Mailchimp succeeds, but the code was throwing an error when trying to parse the response as JSON. This PR fixes the issue by checking the response status without attempting to parse the response body.

Changes made:

  • Removed response.json() call since DELETE responses don't have JSON bodies
  • Simplified error reporting to only include response status
  • Maintained existing connection management and error handling structure

Link to Devin run: https://app.devin.ai/sessions/9aff071b2f6a4e8fb9a66bbcd0818359

@ramiAbdou ramiAbdou changed the title fix: handle DELETE response correctly in Mailchimp member removal fix: handle DELETE response correctly in Mailchimp member removal ❗️ Dec 11, 2024
@ramiAbdou ramiAbdou merged commit 810547d into main Dec 11, 2024
2 checks passed
@ramiAbdou ramiAbdou deleted the devin/1733894223-fix-mailchimp-delete-response branch December 11, 2024 05:27
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.

1 participant