Hosting API on Vercel

I am unable to get my express API to host on vercel. Normally my setup is correctly. it gives an error on my authTidal where it stops

TIDAL auth failed: TypeError: fetch failed
    at node:internal/deps/undici/undici:15845:13
    at async authTidal (file:///var/task/scripts/auth/authTidal.js:8:26)
    at async file:///var/task/init.js:27:26 {
  [cause]: SocketError: other side closed
      at TLSSocket.onHttpSocketEnd (node:internal/deps/undici/undici:7147:26)
      at TLSSocket.emit (node:events:520:35)
      at endReadableNT (node:internal/streams/readable:1701:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    code: 'UND_ERR_SOCKET',
    socket: {
      localAddress: '169.254.100.6',
      localPort: 32800,
      remoteAddress: undefined,
      remotePort: undefined,
      remoteFamily: undefined,
      timeout: undefined,
      bytesWritten: 394,
      bytesRead: 0
    }
  }
}

https://github.com/Kingpin2557/hanszimmer-api
Here is the entire repo
GitHub
Contribute to Kingpin2557/hanszimmer-api development by creating an account on GitHub.
Was this page helpful?