Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghost install failed with 'Cannot read properties of undefined (reading 'statusCode')' when use a proxy #1899

Closed
x-insane opened this issue Nov 11, 2024 · 0 comments · Fixed by #1901

Comments

@x-insane
Copy link

x-insane commented Nov 11, 2024

An error occurred.
Message: 'Cannot read properties of undefined (reading 'statusCode')'

Debug Information:
OS: Ubuntu, v22.04.1 LTS
Node Version: v20.18.0
Ghost-CLI Version: 1.26.1
Environment: production
Command: 'ghost install'

packageJson need a agent object like {http: httpAgent, https: httpsAgent}, but ghost cli pass httpsAgent directly.

@x-insane x-insane changed the title ghost install failed with ghost install failed with 'Cannot read properties of undefined (reading 'statusCode')' Nov 11, 2024
@x-insane x-insane changed the title ghost install failed with 'Cannot read properties of undefined (reading 'statusCode')' ghost install failed with 'Cannot read properties of undefined (reading 'statusCode')' when use a proxy Nov 11, 2024
acburdine added a commit to acburdine/Ghost-CLI that referenced this issue Nov 12, 2024
closes TryGhost#1899
- at some point the syntax changed, so we need to pass the agent differently
acburdine added a commit to acburdine/Ghost-CLI that referenced this issue Nov 12, 2024
closes TryGhost#1899
- at some point the syntax changed, so we need to pass the agent differently
acburdine added a commit that referenced this issue Nov 14, 2024
closes #1899
- at some point the syntax changed, so we need to pass the agent differently
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant