-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Description:
When using hs project dev, the command does not write logs or display errors when proxy requests fail, even with --debug switch.
Current Behavior:
Command reports it "proxified" the request and shows a correlation-id
Browser receives a 500 response from the proxy
No incoming request appears in local nginx
No error logs are written (verified by checking open files of all node processes)
The correlation-id should reference logs, but no logs exist
The proxy is configured, when I do request manually with curl with url shown in "Mapping ... -> url", it succeeded correctly, without errors.
Expected Behavior:
Errors should be logged when proxy requests fail
The correlation-id should correspond to actual retrievable logs
Failed proxy attempts should display meaningful error messages in the terminal
Sample output:
[INFO] Request to https://*** started, method=POST, correlationId=597a0ef6-4431-4a63-93e4-76380f068b31
[INFO] Mapping https://*** -> https://localhost:446/***, correlationId=597a0ef6-4431-4a63-93e4-76380f068b31
[INFO] Request completed, correlationId=597a0ef6-4431-4a63-93e4-76380f068b31
[INFO] Request to https://*** started, method=POST, correlationId=ef4f41b2-12f8-40df-86a7-996ae7fac640
[INFO] Mapping https://*** -> https://localhost:446/***, correlationId=ef4f41b2-12f8-40df-86a7-996ae7fac640
[INFO] Request completed, correlationId=ef4f41b2-12f8-40df-86a7-996ae7fac640
Actual response:
{
"status": "error",
"context": {
"portalId": [
"50838145"
],
"httpMethod": [
"POST"
],
"requestUri": [
"https://***"
],
"correlationId": [
"ab40cf16-42b4-42ec-a892-a24781cacbcf"
],
"appServerStatusCode": [
"500"
]
},
"message": "Error returned from Request Uri",
"errors": [
{
"message": "Unacceptable HTTP status 500 calling https://***"
}
],
"category": "BAD_GATEWAY"
}
Environment:
hs cli 7.11.2
node 20.18.1
npm 10.8.2
ubuntu 2204 lts running by wsl 2.6.3.0 in windows 11 25H2