firebase / firebase/firebase-tools

Add automatic retries to solve intermittent ECONNRESET

Open
#7,583 0 comments 0 reactions 1 assignee Claimed by @joehan View on GitHub
api: core type: bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.