I used webhooks to perform actions with other services running from the same compose file (manage cache, etc). I’ve been unable to do that since March when this PR was merged: Added IP format normalization to request-external by kevinansfield · Pull Request #26717 · TryGhost/Ghost · GitHub
Does anyone have suggestions on how to use webhooks with local services? I’ve tried local hostnames, but since it continues to resolve to a local IP, I get the same error.
ERROR [WEBHOOK_DELIVERY_FAILURE] url=http://172.18.0.2/middleware/ status=none error_code=URL_PRIVATE_INVALID message=URL resolves to a non-permitted private IP block URL resolves to a non-permitted private IP block
URL resolves to a non-permitted private IP block
Error Code:
URL_PRIVATE_INVALID
----------------------------------------
RequestError: URL resolves to a non-permitted private IP block
at Request._beforeError (file:///var/lib/ghost/versions/6.53.0/node_modules/.pnpm/got@13.0.0/node_modules/got/dist/source/core/index.js:310:21)
at Request.flush (file:///var/lib/ghost/versions/6.53.0/node_modules/.pnpm/got@13.0.0/node_modules/got/dist/source/core/index.js:299:18)
at errorIfHostnameResolvesToPrivateIp (/var/lib/ghost/versions/6.53.0/core/server/lib/request-external.js:199:31)
at async Request._makeRequest (file:///var/lib/ghost/versions/6.53.0/node_modules/.pnpm/got@13.0.0/node_modules/got/dist/source/core/index.js:942:28)
at async Request.flush (file:///var/lib/ghost/versions/6.53.0/node_modules/.pnpm/got@13.0.0/node_modules/got/dist/source/core/index.js:285:13)
Version: 6.53.0