Lift-off II error: "Client network socket disconnected before secure TLS connection was established"

{
“errors”: [
{
“message”: “request to https://odyssey-lift-off-rest-api.herokuapp.com/tracks failed, reason: Client network socket disconnected before secure TLS connection was established”,
“locations”: [
{
“line”: 2,
“column”: 3
}
],
“path”: [
“tracksForHome”
],
“extensions”: {
“code”: “INTERNAL_SERVER_ERROR”,
“stacktrace”: [
“FetchError: request to https://odyssey-lift-off-rest-api.herokuapp.com/tracks failed, reason: Client network socket disconnected before secure TLS connection was established”,
" at ClientRequest. (C:\GraphQL\odyssey-lift-off-part2\server\node_modules\node-fetch\lib\index.js:1501:11)“,
" at ClientRequest.emit (node:events:519:28)”,
" at TLSSocket.socketErrorListener (node:_http_client:500:9)“,
" at TLSSocket.emit (node:events:519: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)"
]
}
}
],
“data”: null
}

@Michelle_Mabuyo can you please help me with this

Hi there @Sushma_prasanna! What lesson are you on? When/where do you get this error?

@Michelle_Mabuyo thank you for your response
I am on Connecting the dots to server land,
when i make a Query on server am getting this error

Are you using a VPN or proxy or anything that might be limiting what you can connect to? Can you also confirm you’re using the latest version of node (v22)?

am not using any VPN, but proxy settings are there as per as am using company laptop…
i am using node version 20

It could be related to proxy settings, based on what I’m seeing just googling around for that error message. In that case, your best bet might be to use a personal machine without the limitations. Before going that route, could you also try the following?

  • using Studio Sanbox and typing in http://localhost:4000 at the top
  • updating node to v22

Let me know how that goes!

Sure i will give it a try. Thanks again

i tried it in company’s system only but due to policies it didnt work so started in personal system and its working fine without any issues

1 Like

Glad to hear it’s working with your personal machine. Unfortunately there’s nothing on our end we can do when your company’s system is locked down. like that!

I hope the rest of the course goes smoothly; please open up a new topic if you come across any new issues!