Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

feat(errors): clarify messaging for collection fetch errors #16

Merged

Conversation

markbello
Copy link
Contributor

This PR improves messaging around collection fetch errors.

It took a lot of head-scratching to figure out why I kept getting an error on queryCollection() calls. I kept trying every variation on ids I could send in my request, wondering why a successful network response would give me an Iguazu error.

It turned out the API I was consuming was sending back an array of objects that didn't have unique identifiers, and not that I was sending in a bad id with my Iguazu call.

The updated messaging should help future users diagnose more easily that the shape of their network response is the problem, rather than the shape of their Iguazu request

@markbello markbello requested a review from a team as a code owner April 27, 2020 18:52
Copy link
Contributor

@mtomcal mtomcal left a comment

Choose a reason for hiding this comment

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

This is super helpful @markbello! This is a great help to us to make our tools a better experience. Thank you!

One nit:
feat(errors): clarify messaging for collection fetch errors should be fix(errors): clarify messaging for collection fetch errors as it is not a new feature but a non breaking fix. This will increment as a patch version.

@markbello markbello force-pushed the feat/improve-error-messaging branch from 43d9aa0 to e983fe1 Compare April 27, 2020 19:22
@mtomcal mtomcal merged commit e8627cf into americanexpress:master Apr 28, 2020
@oneamexbot
Copy link
Contributor

🎉 This PR is included in version 1.9.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants