Skip to content

apollo-engine-reporting: don't fail if errors have non-array 'path'#3112

Merged
abernix merged 2 commits into
masterfrom
glasser/aer-path-array
Jul 31, 2019
Merged

apollo-engine-reporting: don't fail if errors have non-array 'path'#3112
abernix merged 2 commits into
masterfrom
glasser/aer-path-array

Conversation

@glasser

@glasser glasser commented Jul 31, 2019

Copy link
Copy Markdown
Member

Specifically, we found that some network errors talking to federated backends
could have a string path.

@glasser glasser requested a review from abernix July 31, 2019 00:40
Specifically, we found that some network errors talking to federated backends
could have a string path.
@glasser glasser force-pushed the glasser/aer-path-array branch from 1372a97 to 5b8565a Compare July 31, 2019 00:41
@glasser

glasser commented Jul 31, 2019

Copy link
Copy Markdown
Member Author

Feel free to merge and release.

@abernix abernix merged commit 1acf62d into master Jul 31, 2019
@abernix abernix deleted the glasser/aer-path-array branch July 31, 2019 10:48
@abernix abernix added this to the Release 2.8.x milestone Jul 31, 2019
abernix pushed a commit to apollographql/federation that referenced this pull request Sep 4, 2020
…pollographql/apollo-server#3112)

* apollo-engine-reporting: don't fail if errors have non-array 'path'

Specifically, we found that some network errors talking to federated backends
could have a string path.

* Just use `Array.isArray`, which returns `false` when passed `undefined`.

Nit, of course.

Apollo-Orig-Commit-AS: apollographql/apollo-server@1acf62d
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants