Ghost icon indicating copy to clipboard operation
Ghost copied to clipboard

Use of express deprecated req.host

Open imzedi opened this issue 1 year ago • 1 comments

Issue Summary

After upgrading to v5, getting this error logs

express deprecated req.host: Use req.hostname instead at versions/5.94.2/node_modules/@tryghost/mw-vhost/lib/vhost.js:83:13

Steps to Reproduce

  1. Changed docker image from ghost:4.48.9 to ghost:5.94.2-alpine
  2. Deployed it, all things were working good
  3. Checked docker logs, getting error logs pasted above
  4. This error is started after upgrading to v5

Ghost Version

5.94.2

Node.js Version

18

How did you install Ghost?

Using docker image 'ghost:5.94.2-alpine'

Database type

MySQL 8

Browser & OS version

No response

Relevant log / error output

No response

Code of Conduct

  • [X] I agree to be friendly and polite to people in this repository

imzedi avatar Nov 06 '24 07:11 imzedi

As far as I am aware that's a deprecation warning, not an error. A PR to resolve it would be welcome though!

ErisDS avatar Mar 14 '25 15:03 ErisDS

Our bot has automatically marked this issue as stale because there has not been any activity here in some time.

The issue will be closed soon if there are no further updates, however we ask that you do not post comments to keep the issue open if you are not actively working on a PR.

We keep the issue list minimal so we can keep focus on the most pressing issues. Closed issues can always be reopened if a new contributor is found. Thank you for understanding 🙂

github-actions[bot] avatar Jul 08 '25 06:07 github-actions[bot]