Skip to content

Conversation

@callmehiphop
Copy link
Contributor

Closes #1265

This adds a retry with backoff strategy for gRPC requests. Currently it will only attempt to retry for gRPC error code 14 (service unavailable).

@heidmotron @leonardpunt @jmdobry if any of you would like to test if this resolves your issues, that would be awesome :)

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 28, 2016
@stephenplusplus
Copy link
Contributor

Is it possible to use retry request directly? It accepts a custom request function. If it's close, but kind of a hack, maybe it just needs a pr to generalize it.

@callmehiphop
Copy link
Contributor Author

I initially did go down this route but it started to get pretty hacky, so I gave up on it. However if you think a PR there is the way to go, I'd be more than happy to try and tackle that.

@stephenplusplus
Copy link
Contributor

If it's possible without getting into hack territory, I think that would be awesome.

@coveralls
Copy link

coveralls commented Apr 28, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 072602b on callmehiphop:grpc-retry-requests into e9e4170 on GoogleCloudPlatform:master.

@coveralls
Copy link

coveralls commented Apr 28, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 072602b on callmehiphop:grpc-retry-requests into e9e4170 on GoogleCloudPlatform:master.

@heidmotron
Copy link

@callmehiphop this works, thanks!

@callmehiphop
Copy link
Contributor Author

Closing in favor of #1273

miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [protobufjs](https://protobufjs.github.io/protobuf.js/) ([source](https://togithub.com/protobufjs/protobuf.js)) | [`6.11.2` -> `6.11.3`](https://renovatebot.com/diffs/npm/protobufjs/6.11.2/6.11.3) | [![age](https://badges.renovateapi.com/packages/npm/protobufjs/6.11.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/protobufjs/6.11.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/protobufjs/6.11.3/compatibility-slim/6.11.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/protobufjs/6.11.3/confidence-slim/6.11.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>protobufjs/protobuf.js</summary>

### [`v6.11.3`](https://togithub.com/protobufjs/protobuf.js/releases/tag/v6.11.3)

[Compare Source](https://togithub.com/protobufjs/protobuf.js/compare/v6.11.2...v6.11.3)

##### [6.11.3](https://togithub.com/protobufjs/protobuf.js/compare/v6.11.2...v6.11.3) (2022-05-20)

##### Bug Fixes

-   **deps:** use eslint 8.x ([#&#8203;1728](https://togithub.com/protobufjs/protobuf.js/issues/1728)) ([a8681ce](https://togithub.com/protobufjs/protobuf.js/commit/a8681ceab4763e706a848121a2dde56791b89eea))
-   do not let setProperty change the prototype ([#&#8203;1731](https://togithub.com/protobufjs/protobuf.js/issues/1731)) ([b5f1391](https://togithub.com/protobufjs/protobuf.js/commit/b5f1391dff5515894830a6570e6d73f5511b2e8f))

</details>

---

### Configuration

📅 **Schedule**: "after 9am and before 3pm" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/gax-nodejs).
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

503 unavailable response from datastore after app has idled for a few minutes

5 participants