-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
In our project, we are using the hasura-cli package that downloads a CLI in a postinstall step when a new version is available.
Today, I noticed that there was an issue when running yarn install:
Here's the logs:
# This file contains the result of Yarn building a package (hasura-cli@npm:2.35.1)
# Script name: postinstall
[email protected]
Downloading Hasura CLI binary v2.35.1 from https://github.com/hasura/graphql-engine/releases/download/v2.35.1/cli-hasura-darwin-arm64
[email protected]
Error! Failed to install Hasura CLI binary.
Try npm uninstall hasura-cli or yarn remove hasura-cli and then reinstall it.
If the issue occurs repeatedly, check if your network can access https://github.com as the the Hasura CLI binary file is hosted on Github.
You can report the issue on https://github.com/jjangga0214/hasura-cli/issues with error message.
/Users/xxx/Git/xxx/xxx/node_modules/hasura-cli/node_modules/axios/lib/core/createError.js:16
var error = new Error(message);
^
Error: Request failed with status code 405
at createError (/Users/xxx/Git/xxx/xxx/node_modules/hasura-cli/node_modules/axios/lib/core/createError.js:16:15)
at settle (/Users/xxx/Git/xxx/xxx/node_modules/hasura-cli/node_modules/axios/lib/core/settle.js:17:12)
at RedirectableRequest.handleResponse (/Users/xxx/Git/xxx/xxx/node_modules/hasura-cli/node_modules/axios/lib/adapters/http.js:238:9)
at RedirectableRequest.emit (node:events:518:28)
at RedirectableRequest._processResponse (/Users/xxx/Git/xxx/xxx/node_modules/follow-redirects/index.js:409:10)
at RedirectableRequest._onNativeResponse (/Users/xxx/Git/xxx/xxx/node_modules/follow-redirects/index.js:102:12)
at Object.onceWrapper (node:events:633:26)
at ClientRequest.emit (node:events:518:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:716:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17) {
config: {
url: 'https://github.com/hasura/graphql-engine/releases/download/v2.35.1/cli-hasura-darwin-arm64',
As it was a network issue, I remembered that I was using sfw automatically for all yarn install command. I tried disabling it and the installation completed successfully.
I guess that sfw is doing something that breaks the CLI download from the Github release artifacts.
Metadata
Metadata
Assignees
Labels
No labels