Skip to content

Uplink connection timeout returns incorrect status code #1328

@ianschmitz

Description

@ianschmitz

This issue may be related to #720.

Describe the bug
We discovered this issue while porting create-react-app over to Azure DevOps build pipeline (facebook/create-react-app#7096). If a connection to the uplink (e.g. registry.npmjs.org) times out, Verdaccio returns a 404 status code, which causes the npm/yarn client to fail.

Expected behavior
Verdaccio should return a 503 status code which tells the npm/yarn client to try again.

@willsmythe helped us fix this in a fork of his. You can see the diff here: master...willsmythe:fix-404-on-uplink-timeout.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions