netlify / next-runtime

The Next.js Runtime allows Next.js to run on Netlify with zero configuration
https://www.npmjs.com/package/@netlify/plugin-nextjs
636 stars 85 forks source link

[Bug]: NextJS Deploy stopped working after todays runtime merge #2162

Closed bentrynning closed 1 year ago

bentrynning commented 1 year ago

Summary

Deploy fails with the following errors

10:16:46 PM: Deploy site                                                   
10:16:46 PM: ────────────────────────────────────────────────────────────────
10:16:46 PM: ​
10:16:46 PM: Starting to deploy site from 'apps/store/.next'
10:16:46 PM: Calculating files to upload
10:16:47 PM: 47 new files to upload
10:16:47 PM: 3 new functions to upload
10:16:52 PM: Invalid AWS Lambda parameters used in this request.
10:16:53 PM: Invalid AWS Lambda parameters used in this request.
10:16:54 PM: Invalid AWS Lambda parameters used in this request.
10:16:54 PM: Invalid AWS Lambda parameters used in this request.
10:16:55 PM: Invalid AWS Lambda parameters used in this request.
10:16:55 PM: Invalid AWS Lambda parameters used in this request.
10:16:56 PM: Invalid AWS Lambda parameters used in this request.
10:16:57 PM: Invalid AWS Lambda parameters used in this request.
10:16:57 PM: Invalid AWS Lambda parameters used in this request.
10:16:57 PM: Invalid AWS Lambda parameters used in this request.
10:16:59 PM: Invalid AWS Lambda parameters used in this request.
10:17:00 PM: Invalid AWS Lambda parameters used in this request.
10:17:01 PM: Invalid AWS Lambda parameters used in this request.
10:17:01 PM: Invalid AWS Lambda parameters used in this request.
10:17:03 PM: Invalid AWS Lambda parameters used in this request.
10:17:03 PM: Invalid AWS Lambda parameters used in this request.
10:17:04 PM: Invalid AWS Lambda parameters used in this request.
10:17:08 PM: Invalid AWS Lambda parameters used in this request.
10:17:08 PM: Invalid AWS Lambda parameters used in this request.
10:17:08 PM: Invalid AWS Lambda parameters used in this request.
10:17:14 PM: Invalid AWS Lambda parameters used in this request.
10:17:15 PM: Invalid AWS Lambda parameters used in this request.
10:17:18 PM: Invalid AWS Lambda parameters used in this request.
10:17:25 PM: Invalid AWS Lambda parameters used in this request.
10:17:26 PM: Invalid AWS Lambda parameters used in this request.
10:17:29 PM: Invalid AWS Lambda parameters used in this request.
10:17:35 PM: Invalid AWS Lambda parameters used in this request.
10:17:50 PM: Invalid AWS Lambda parameters used in this request.
10:17:55 PM: Invalid AWS Lambda parameters used in this request.
10:17:59 PM: Invalid AWS Lambda parameters used in this request.
10:18:11 PM: Invalid AWS Lambda parameters used in this request.
10:18:12 PM: Failed to upload file: _ipx
10:18:18 PM: Failed to upload file: ___netlify-odb-handler
10:18:44 PM: Failed to upload file: ___netlify-handler
10:18:44 PM: Section completed: deploying
10:18:44 PM: Site deploy was successfully initiated
10:18:45 PM: ​
10:18:45 PM: (Deploy site completed in 1m 58.2s)

A link to a reproduction repository

https://github.com/bentrynning/next-app-test

Expected Result

The site to be deployed

Actual Result

See Summary

Steps to reproduce

Just try to deploy a starter version of NextJS app, or any existing Next app.

Next Runtime version

v4.37.4

Is your issue related to the app directory?

More information about your build

What OS are you using?

None

Your netlify.toml file

`netlify.toml` ```toml # Paste content of your `netlify.toml` file here ```

Your public/_redirects file

`_redirects` ``` # Paste content of your `_redirects` file here ```

Your next.config.js file

`next.config.js` ```js # Paste content of your `next.config.js` file here. Check there is no private info in there. ```

Builds logs (or link to your logs)

Build logs ``` # Paste logs here ```

Function logs

Function logs ``` # Paste logs here ```

.next JSON files

generated .next JSON files ``` # Paste file contents here. Please check there isn't any private info in them # You can either build locally, or download the deploy from Netlify by clicking the arrow next to the deploy time. ```
bentrynning commented 1 year ago

Looks like deploy step started working again now. But I still get hard refresh when navigating between app pages.

jpizzle34 commented 1 year ago

Looks like deploy step started working again now. But I still get hard refresh when navigating between app pages.

Yep, same here. Deploy is now successful, however looks like netlify odb functions are failling (502) for edge images and dynamic routes

LekoArts commented 1 year ago

Hi!

AWS had an outage and subsequently we, too. Please see https://www.netlifystatus.com/incidents/kx634qxqpb4g There was also no new runtime released today since merges on this repository don't mean that they get automatically released. We have to merge a PR like https://github.com/netlify/next-runtime/pull/2157 and then we rollout the release over the timespan of a week.

Please open a new issue with a clear reproduction if you still run into errors.