I am using Edgio 7.11.4, SvelteKit 1.0.0, Node.js adaptor, and Node.js connector. Everything on the website runs smoothly except when making requests to another API server, where it often encounters the error “Connect ECONNREFUSED 127.0.0.1:443.” Although the API server is hosted on a different service, some process attempts to call localhost 127.0.0.1:443 instead of the API server URL. You can check the attached image for more details.
Error information:
FetchError: request to https://.net/api/webpages/1/1/content-webpage?slug=/resources&pageStatus=Published&isBrowser=false failed, reason: connect ECONNREFUSED 127.0.0.1:443
at EdgioClientRequest. (file:///mnt/f//git-sources/**main-site/.edgio/lambda/app/handler-65c2a55d.js:6955:11)
at EdgioClientRequest.emit (node:events:530:35)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: ‘system’,
errno: ‘ECONNREFUSED’,
code: ‘ECONNREFUSED’,
erroredSysCall: ‘connect’
}
I would appreciate any help. Thank you very much.