Skip to content

Conversation

davidcornu
Copy link
Member

Summary of the problem

  1. In Make sure unsuccessful HTTP calls with Faraday result in exceptions #11237 I centralized SyncWithLoops's Faraday instance and added the :raise_errors middleware so we'd get exceptions when things went wrong
  2. I subsequently noticed this was causing issues in production so undid my changes in Restore changes to Loops client #11291
  3. After digging a bit more I realized that 404s were to be expected from this endpoint and that this was previously handled by return nil if resp.body.strip == "[]"
    https://loops.so/docs/api-reference/find-contact
    CleanShot 2025-08-11 at 11 39 41@2x

Describe your changes

Added a rescue block for Faraday::ResourceNotFound that just returns nil

@davidcornu davidcornu requested review from a team as code owners August 11, 2025 15:42
@davidcornu
Copy link
Member Author

@davidcornu davidcornu added this pull request to the merge queue Aug 20, 2025
Merged via the queue into main with commit bcb9512 Aug 20, 2025
13 checks passed
@davidcornu davidcornu deleted the david/push-qpulplmpymys branch August 20, 2025 13:36
davidcornu added a commit that referenced this pull request Aug 20, 2025
github-merge-queue bot pushed a commit that referenced this pull request Aug 20, 2025
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