next.js icon indicating copy to clipboard operation
next.js copied to clipboard

UND_ERR_CONNECT_TIMEOUT error

Open ckmirafss opened this issue 1 year ago • 1 comments

Verify canary release

  • [X] I verified that the issue exists in the latest Next.js canary release

Provide environment information

Hello, I'm encountering the UND_ERR_CONNECT_TIMEOUT error while working with Next.js 14 and utilizing route.js for my API. This issue arises when I attempt to display location addresses using a third-party API. You can visit my website to see the problem firsthand; please use a Melbourne address for testing purposes. To diagnose, you might want to examine the fetch/XHR tab. Appreciate your help!

Here's my website link for review: https://www.ainternet.com.au/nbn

Error

`A problem occurred with the fetch operation: TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11730:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  cause: ConnectTimeoutError: Connect Timeout Error
      at onConnectTimeout (node:internal/deps/undici/undici:6869:28)
      at node:internal/deps/undici/undici:6825:50
      at Immediate._onImmediate (node:internal/deps/undici/undici:6857:13)
      at process.processImmediate (node:internal/timers:478:21)
      at process.callbackTrampoline (node:internal/async_hooks:130:17) {
    code: 'UND_ERR_CONNECT_TIMEOUT'
  }
}`

Which example does this report relate to?

api-routes

What browser are you using? (if relevant)

chrome

How are you deploying your application? (if relevant)

Vercel

Describe the Bug

Hello, I'm encountering the UND_ERR_CONNECT_TIMEOUT error while working with Next.js 14 and utilizing route.js for my API. This issue arises when I attempt to display location addresses using a third-party API. You can visit my website to see the problem firsthand; please use a Melbourne address for testing purposes. To diagnose, you might want to examine the fetch/XHR tab. Appreciate your help!

Here's my website link for review: https://www.ainternet.com.au/nbn

Error

A problem occurred with the fetch operation: TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11730:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { cause: ConnectTimeoutError: Connect Timeout Error at onConnectTimeout (node:internal/deps/undici/undici:6869:28) at node:internal/deps/undici/undici:6825:50 at Immediate._onImmediate (node:internal/deps/undici/undici:6857:13) at process.processImmediate (node:internal/timers:478:21) at process.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'UND_ERR_CONNECT_TIMEOUT' } }

Expected Behavior

Get address

To Reproduce

Hello, I'm encountering the UND_ERR_CONNECT_TIMEOUT error while working with Next.js 14 and utilizing route.js for my API. This issue arises when I attempt to display location addresses using a third-party API. You can visit my website to see the problem firsthand; please use a Melbourne address for testing purposes. To diagnose, you might want to examine the fetch/XHR tab. Appreciate your help!

Here's my website link for review: https://www.ainternet.com.au/nbn

Error

A problem occurred with the fetch operation: TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11730:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { cause: ConnectTimeoutError: Connect Timeout Error at onConnectTimeout (node:internal/deps/undici/undici:6869:28) at node:internal/deps/undici/undici:6825:50 at Immediate._onImmediate (node:internal/deps/undici/undici:6857:13) at process.processImmediate (node:internal/timers:478:21) at process.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'UND_ERR_CONNECT_TIMEOUT' } }

ckmirafss avatar Jan 26 '24 04:01 ckmirafss

@ckmirafss We need a :repro: to diagnose this issue!

In the meantime, I will be closing this.

samcx avatar Mar 18 '24 23:03 samcx

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

github-actions[bot] avatar Apr 02 '24 00:04 github-actions[bot]