Hello,
I am trying to make a simple http request to my app(dev instance - dev.connect.payzli.com ). its giving error. its giving Parse Error: Missing expected CR after header value.
but if i do the same for other env the http request is working fine as it should.
This is happening if i run the instance locally or on cloud.
D4w1d
February 12, 2026, 5:20pm
3
Hey,
Could you paste your workflow JSON here, so we can exactly see the full node configuration and test it ourselves?
Thanks
1 Like
Hello David,
Thanks for the reply.
here is the workflow json
While debugging this issue and running both n8n and my web app locally, i came accross a situtation which might help with this issue too.
If i was putting http://localhost:3000 in the url while trying to make the API call i was getting the following error.
AxiosError: connect ECONNREFUSED ::1:3000
at Function.AxiosError.from (/Users/nikhilnegi/pay/nan/n8n/node_modules/.pnpm/[email protected] /node_modules/axios/lib/core/AxiosError.js:96:14)
at RedirectableRequest.handleRequestError (/Users/nikhilnegi/pay/nan/n8n/node_modules/.pnpm/[email protected] /node_modules/axios/lib/adapters/http.js:638:25)
at RedirectableRequest.emit (node:events:530:35)
at ClientRequest.eventHandlers.<computed> (/Users/nikhilnegi/pay/nan/n8n/node_modules/.pnpm/[email protected] [email protected] /node_modules/follow-redirects/index.js:49:24)
at ClientRequest.emit (node:events:518:28)
at emitErrorEvent (node:_http_client:104:11)
at Socket.socketErrorListener (node:_http_client:518:5)
at Socket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at Axios.request (/Users/nikhilnegi/pay/nan/n8n/node_modules/.pnpm/[email protected] /node_modules/axios/lib/core/Axios.js:45:41)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at invokeAxios (/Users/nikhilnegi/pay/nan/n8n/packages/core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:283:10)
at proxyRequestToAxios (/Users/nikhilnegi/pay/nan/n8n/packages/core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:659:20)
at Object.request (/Users/nikhilnegi/pay/nan/n8n/packages/core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1804:4) {
port: 3000,
address: '::1',
syscall: 'connect',
code: 'ECONNREFUSED',
errno: -61,
config: undefined,
request: undefined,
options: {
url: 'http://localhost:3000',
method: 'get',
data: undefined,
headers: Object [AxiosHeaders] {
Accept: '*/*',
'Content-Type': false,
'User-Agent': 'axios/1.12.0',
'Accept-Encoding': 'gzip, compress, deflate, br'
}
},
[cause]: Error: connect ECONNREFUSED ::1:3000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1636:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 3000
}
}
on the other hand if i pout http://127.0.0.1:3000 in the url the API request was working fine.
D4w1d
February 18, 2026, 10:42am
6
I run the following test:
I cloned your workflow to my local setup (the only change I did was dropping https:// in favour of http:// - the rest remained identical).
I started local n8n at http://localhost:5678
I started a fake http server on port 3000:
// index.js
const http = require('http');
http
.createServer((req, res) => {
res.statusCode = 200;
res.end('OK');
})
.listen(3000);
node index.js
Then checked http://localhost:3000 in Chrome - responded with 200 OK.
Finally, run the workflow, it worked as expected:
In your local setup, are you sure there is a server running at 3000 that is accessible?
1 Like