Skip to content

Commit

Permalink
fix: retry on connection refused
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirPal committed Mar 15, 2018
1 parent 1de8da2 commit db85971
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/containers/AuthForm/EmailStep/EmailStep.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class EmailStep extends Component<Props> {
<Field
name="username"
type="text"
placeholder="Enter email"
placeholder="Enter username"
withRef
ref={(el) => {
this.usernameInput = el;
Expand Down
5 changes: 4 additions & 1 deletion app/sagas/issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ export function* fetchIssues({
resolve();
}
} catch (err) {
if (err.code === 'ETIMEDOUT' && !tryCount) {
if (
['ETIMEDOUT', 'ECONNREFUSED', 'ESOCKETTIMEDOUT'].includes(err.code) &&
!tryCount
) {
yield fork(
fetchIssues,
{
Expand Down

0 comments on commit db85971

Please sign in to comment.