Comments (8)
I'm getting the same issue.
from open-next.
from open-next.
@EthanLLL I had similar errors using Node16, worked after upgrading to 18. Which version are you running locally?
from open-next.
@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.
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.
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.
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.
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)
- next/image `url` param is incorrect when using `basePath` HOT 2
- Next Cache never expires with Pages Router HOT 4
- open-next errors out on some favicon formats. HOT 5
- [Edge] CloudFront Blacklisted headers Server Actions HOT 1
- Inconsistent `cache-control` for remote Next Images on Cloudfront HOT 1
- [Streaming] Lambda Timeout when using React Suspense HOT 5
- Leading slash redirects not working for next server actions (but does work locally) HOT 5
- ENOENT: no such file or directory, scandir '.open-next/...' HOT 18
- Nextjs doesn't have "copyFiles" property HOT 2
- Next.js redirects in config broken in rc15 HOT 5
- Hitting a non-existent route results in infinite redirect. Same app behaves correctly locally and on vercel. HOT 4
- Image optimization fails due to version mismatch HOT 15
- [BUG] Could not resolve `@aws-sdk/client-sso-oidc` HOT 3
- Unable to Deploy Serverless with API Gateway HOT 4
- [BUG] Error on Warmer function HOT 3
- Lambda@Edge tried to add, delete, or change a read-only header HOT 2
- Undefined environment variables after upgrade to V3 HOT 4
- getting started ion link redirecting to wrong page HOT 1
- (Next)Auth doesn't properly refresh the page when deployed using Open Next HOT 7
- Redirect to different domain result in invalid url HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-next.