Skip to content

core: filter out duplicate error messages#1055

Merged
stephenplusplus merged 1 commit intogoogleapis:masterfrom
callmehiphop:error-message-tests
Jan 7, 2016
Merged

core: filter out duplicate error messages#1055
stephenplusplus merged 1 commit intogoogleapis:masterfrom
callmehiphop:error-message-tests

Conversation

@callmehiphop
Copy link
Copy Markdown
Contributor

In certain cases we are seeing duplicate error messages. This change will filter out any duplicates to avoid error messages like Not Found - Not Found.

@callmehiphop callmehiphop added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. core labels Jan 7, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 7, 2016
@stephenplusplus
Copy link
Copy Markdown
Contributor

To answer your earlier question, I guess this is why this whole idea was kinda weird. Maybe we should just revert the change and only special-case the error messages for Datastore? That's where we saw the vagueness originally.

@callmehiphop
Copy link
Copy Markdown
Contributor Author

I think it's still useful, it was really only behaving oddly in Storage, but if you'd rather special-case Datastore, that's cool with me too.

Comment thread lib/common/util.js

This comment was marked as spam.

This comment was marked as spam.

@stephenplusplus
Copy link
Copy Markdown
Contributor

I'm cool with keeping the feature if you see it's useful. Let's see what happens!

installed array-uniq as dependency
@stephenplusplus
Copy link
Copy Markdown
Contributor

Cool. Pretty sure the answer is yes, but did you confirm the system tests are happy now?

@callmehiphop
Copy link
Copy Markdown
Contributor Author

Sure did!

stephenplusplus added a commit that referenced this pull request Jan 7, 2016
core: filter out duplicate error messages
@stephenplusplus stephenplusplus merged commit dec7234 into googleapis:master Jan 7, 2016
@callmehiphop callmehiphop deleted the error-message-tests branch January 7, 2016 01:34
miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
🤖 I have created a release \*beep\* \*boop\*
---
## [2.18.0](https://www.github.com/googleapis/gax-nodejs/compare/v2.17.1...v2.18.0) (2021-07-13)


### Features

* make OperationsClient closeable ([#1047](https://www.github.com/googleapis/gax-nodejs/issues/1047)) ([2dbba29](https://www.github.com/googleapis/gax-nodejs/commit/2dbba29dde552fb35c275a4a44b06fb4698eb5cf))
* support map handle for DIREGAPIC Pagination ([#1052](https://www.github.com/googleapis/gax-nodejs/issues/1052)) ([faab4c6](https://www.github.com/googleapis/gax-nodejs/commit/faab4c652c4943fc18c792995180bf59dbd5c7bc))


### Bug Fixes

* make pagination work for empty responses ([#1043](https://www.github.com/googleapis/gax-nodejs/issues/1043)) ([cbe2d3f](https://www.github.com/googleapis/gax-nodejs/commit/cbe2d3f9de4ec01e8e61699b5fa6bf7b34b870a5))
* replace isBrowser() with home made feature detection ([#1054](https://www.github.com/googleapis/gax-nodejs/issues/1054)) ([2c8e56d](https://www.github.com/googleapis/gax-nodejs/commit/2c8e56d5812af7b08ff6d68169d1d8ea325e03c2))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
sofisl pushed a commit that referenced this pull request Feb 3, 2026
Update .repo-metadata.json as required by go/library-data-integrity
sofisl pushed a commit that referenced this pull request Feb 24, 2026
* fix!: mark v1beta1 client as deprecated (#937)

* feat!: use QueryDocumentSnapshot in FirestoreDataConverter (#965)

* deps: update to gts 2.x (#1013)

* chore!: update settings for Node 10 (#1019)

* deps: drop through2 (#1014)

* feat: support BigInt (#1016)

* fix: make update.sh work on Linux (#1043)

* fix: only use BigInt in BigInt system test (#1044)

* fix: make pbjs compile admin proto again (#1045)

* Add BulkWriter (#1055)

* docs: Add documentation for FirestoreDataConverter (#1059)

* chore: enforce return types (#1065)

* fix: add generic to Firestore.getAll() (#1066)

* chore: remove internal WriteOp (#1067)

* chore: add linter checks for it|describe.only (#1068)

* fix: handle terminate in BulkWriter (#1070)

* chore: run template copying last in synthtool (#1071)

* feat: Firestore Bundles implementation (#1078)

* feat: add support for set() with SetOptions when using FirestoreDataConverter (#1087)

* feat: Add totalDocuments and totalBytes to bundle metadata. (#1085)

* feat: Add totalDocuments and totalBytes to bundle metadata.

* fix: Better comment

* fix: Better testing.

* fix: Improve metadata testing.

* fix: incomplete expect in rate-limiter test (#1092)

* Remove BatchWrite proto, fix conformance tests

* chore: use public API types internally (#1100)

* feat: add Partition and BatchWrite protos (#1110)

* fix: remove GCF transaction fallback (#1112)

* fix: add BulkWriter integration tests, java backport changes, delete fix (#1117)

* chore: merge master (#1218)

* chore: add eslint check for console.log statements (#1229)

* fix: another attempt at fixing the flaky BulkWriter test (#1228)

* Fix comment

* Renames

* Test fix

* Fix unit tests

Co-authored-by: Brian Chen <[email protected]>
Co-authored-by: wu-hui <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. core type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants