Hi there,
I’m having some trouble deploying my new app (siteId: 63a409c0-76ec-4be0-af84-709afdef2524). Build is successful and for a graphql/react app but deploy encounters an error 500. I have this toml :
[build]
command = "yarn build"
functions = "lambda"
publish = "build"
✔ Ignored invalid or expired functions cache
✔ Finished hashing 21 files and 2 functions
✔ CDN requesting 0 files and 2 functions
⠙ (1/2) Uploading graphql... › Warning: JSONHTTPError: 500
› Warning:
{
"name": "JSONHTTPError",
"status": 500,
"json": {
"status": 500,
"error": "Internal Server Error"
}
}
› JSONHTTPError: Internal Server Error
I found some old topics (without finding any solution) talking about “debug=true” feature. Is there something which can help debugging to be easier ? More verbose?
Thanks!
Hey @JLartigaud ,
Could you continue the discussion in this issue:
opened 01:13AM - 05 May 22 UTC
type: bug
### Describe the bug
I'm trying to deploy a next.js app that's inside a Nx work… space using netlify-cli. I have configured the build settings as show below in the netlify.toml file and in the netlify UI. I have logged in using the cli and I'm setting the site ID as an environment variable in my terminal.
The app builds without problem including the @netlify/plugin-nextjs output, the issue begins at the upload stage. After 20 minutes (at least) it just errors out with this message:
```
{
"name": "JSONHTTPError",
"status": 500,
"json": {
"status": 500,
"error": "Internal Server Error"
}
}
```
I have tried running the deploy command as:
`npx netlify deploy --prod --build`
as well as:
```
npx netlify build
npx netlify deploy --prod
```
with no luck.
I have also tried doing the same with a clean nx workspace with a next app, [here's the repo](https://github.com/AlanAcDz/nx-next-test). The error is the same and it takes the same amount of time
Here's the full log with the DEBUG=* env variable in my original project:
[error.txt](https://github.com/netlify/cli/files/8628242/error.txt)
### Steps to reproduce
1. git clone https://github.com/AlanAcDz/nx-next-test.git
2. npm install (it includes netlify-cli as a devDependency)
3. npx netlify login
4. set site ID as environment variable
5. npx netlify deploy --build --prod
6. *go get a coffee and a snack cause it takes a while
7. the cli errors out
### Configuration
[build]
command = "nx build next-test"
publish = "dist/apps/next-test/.next"
[[plugins]]
package = "@netlify/plugin-nextjs"
### Environment
```
System:
OS: Windows 10 10.0.22000
CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
Memory: 4.76 GB / 15.36 GB
Binaries:
Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
npm: 8.9.0 - C:\Program Files\nodejs\npm.CMD
npmPackages:
netlify-cli: ^10.2.0
```