firebase / firebase/firebase-tools
Add automatic retries to solve intermittent ECONNRESET
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 84
Description
### [REQUIRED] Environment info
**firebase-tools:** 12.5.4
**Platform:** macOS
### [REQUIRED] Test case
Run `firebase use prod` in Bitrise CI.
### [REQUIRED] Steps to reproduce
When running `firebase use prod`, we intermittently (though quite regularly) get a ECONNRESET error.
### [REQUIRED] Expected behavior
The command passes without any issue, retrying any potential network resets or other intermittent and retryable requests.
### [REQUIRED] Actual behavior
The request fails with the following error:
```
FetchError: Invalid response body while trying to fetch https://www.googleapis.com/oauth2/v4/token: read ECONNRESET
```
Contributor guide
Assessment
This issue has not been assessed yet.