Skip to content

fix: handle DELETE response correctly in Mailchimp member removal ❗️#666

Merged
ramiAbdou merged 1 commit intomainfrom
devin/1733894223-fix-mailchimp-delete-response
Dec 11, 2024
Merged

fix: handle DELETE response correctly in Mailchimp member removal ❗️#666
ramiAbdou merged 1 commit intomainfrom
devin/1733894223-fix-mailchimp-delete-response

Conversation

@devin-ai-integration
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

Co-Authored-By: Rami Abdou <rami@colorstack.org>
@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