Giter Club home page Giter Club logo

Comments (8)

debanjanbasu avatar debanjanbasu commented on June 27, 2024

I'm getting the same issue.

from open-next.

fwang avatar fwang commented on June 27, 2024

from open-next.

niklaswallerstedt avatar niklaswallerstedt commented on June 27, 2024

@EthanLLL I had similar errors using Node16, worked after upgrading to 18. Which version are you running locally?

from open-next.

debanjanbasu avatar debanjanbasu commented on June 27, 2024

@EthanLLL I had similar errors using Node16, worked after upgrading to 18. Which version are you running locally?

My local environment is on node 19, and is working fine. The issues is when I'm deploying this to SST v2 stack. I've upgraded my node version in the cloud to v18, without much help 😢.

from open-next.

debanjanbasu avatar debanjanbasu commented on June 27, 2024

If you go to 1. Ur AWS CloudWatch console 2. Find the log group for the server handler function 3. Check the recent log streams Can you share the errors you are seeing? Frank

-- https://seed.run/ Founder at SST https://sst.dev SST https://github.com/serverless-stack/serverless-stack - OS framework for building serverless apps SEED https://seed.run/ - Deploy, manage, and monitor serverless apps
On Fri, Mar 10, 2023 at 6:15 AM Debanjan Basu @.> wrote: I'm getting the same issue. — Reply to this email directly, view it on GitHub <#51 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUMO6BR3EPQTCQGZOIF3DW3MENTANCNFSM6AAAAAAVQAL24Y . You are receiving this because you are subscribed to this thread.Message ID: @.>

2023-03-12T03:39:41.522Z 994f5842-c0fa-4a90-93a5-f9e1cc5d38f7 ERROR Error: URL is malformed "/api/hello". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls at Object.validateURL (/var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/web/utils.js:94:15) at new NextRequest (/var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/web/spec-extension/request.js:15:21) ... 4 lines matching cause stack trace ... at StaticGenerationAsyncStorageWrapper.wrap (/var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/async-storage/static-generation-async-storage-wrapper.js:7:52) at /var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:330:151 at AsyncLocalStorage.run (node:async_hooks:345:14) at RequestAsyncStorageWrapper.wrap (/var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/async-storage/request-async-storage-wrapper.js:65:24) { page: '/api/hello', [cause]: TypeError [ERR_INVALID_URL]: Invalid URL at new NodeError (node:internal/errors:400:5) at URL.onParseError (node:internal/url:565:9) at new URL (node:internal/url:645:5) at Object.validateURL (/var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/web/utils.js:92:23) at new NextRequest (/var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/web/spec-extension/request.js:15:21) at wrapRequest (/var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:73:12) at /var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/future/route-handlers/app-route-route-handler.js:367:38 at AsyncLocalStorage.run (node:async_hooks:345:14) at StaticGenerationAsyncStorageWrapper.wrap (/var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/async-storage/static-generation-async-storage-wrapper.js:33:24) at StaticGenerationAsyncStorageWrapper.wrap (/var/task/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/next/dist/server/async-storage/static-generation-async-storage-wrapper.js:7:52) { input: '/api/hello', code: 'ERR_INVALID_URL' } }

from open-next.

cryptoPickle avatar cryptoPickle commented on June 27, 2024

I have the same issue but on ssr, basically when it fails, it throws me the same error. Expected behaviour would be at least for me to render 500 error on dom.

What i did for mitigate this issue is created custom 500 page, and whenever 500 happens in cloudfront i basically redirect to 500 page using cloudfront errors. Is there any other way to render 500 page from _error.js file without adding extra 500 component ?

from open-next.

EthanLLL avatar EthanLLL commented on June 27, 2024

This issue happens when using Next 13 app/api dir. I am using app/[pages] and pages/api together to workaround this.

from open-next.

khuezy avatar khuezy commented on June 27, 2024

Is this still an issue? #208 resolves most issues. Please report a new issue if you still experience it.

from open-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.