Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXE-3676 Axios closing the socket, resulting in a HTTP null response to client #194

Open
akaganeshmurthy opened this issue Feb 28, 2024 · 1 comment

Comments

@akaganeshmurthy
Copy link

Trying to use the edgegrid library for purge API calls, but getting the following error trace:
{ "level": "error", "message": "Internal API Error", "name": "AkamaiError", "service": "cdn-cache-purge", "awsRequestId": "1e846559-dfba-4e30-a9d2-9ef8894cb530", "errorId": "8122f00f-680e-4862-89a7-3da6203e7595", "stack": "AkamaiError: Internal API Error\n at /var/task/common/src/common.js:56:13\n at /opt/nodejs/node_modules/akamai-edgegrid/src/api.js:101:9\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)", "cause": { "message": "socket hang up", "name": "Error", "stack": "Error: socket hang up\n at AxiosError.from (/opt/nodejs/node_modules/axios/dist/node/axios.cjs:837:14)\n at ClientRequest.handleRequestError (/opt/nodejs/node_modules/axios/dist/node/axios.cjs:3083:25)\n at ClientRequest.emit (node:events:517:28)\n at TLSSocket.socketOnEnd (node:_http_client:525:9)\n at TLSSocket.emit (node:events:529:35)\n at endReadableNT (node:internal/streams/readable:1400:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"

The client making the request is an AWS lambda instance. Is this a known issue with Axios and proxies, or is this something coming from the client side?
new_error_line_101_feb_28.txt

@ckulinsk
Copy link

ckulinsk commented Mar 1, 2024

Hi @akaganeshmurthy,

Thank you for raising this issue. We will get back to you after our investigation if this issue can be addressed.

Regards,
Cyryl

@mimazaka mimazaka changed the title Axios closing the socket, resulting in a HTTP null response to client DXE-3676 Axios closing the socket, resulting in a HTTP null response to client Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants