Netlify hosting resource error

Greetings,
i have a nextjs site deployed using netlify and for some reason one of my api route gives a 500 error (resource cannot be loaded)
Note : the code does have a 500 response in catch block as
try {
res.json({sample response})
}catch(err){
res.status(500).json({some err})
}
but same does work when running on localhost

Hey there, @Junaid-Bashir-Kernel :wave:

Welcome to the Netlify Forums! You have come to the right spot for assistance. Have you searched the forums for folks who have encountered the same error? It is likely you will be able to find a solution! You can have a look by following this link: Search results for 'nextjs 500 error' - Netlify Support Forums

If that doesn’t get you on the right track, however, we will need a bit more information in order to help you.

Can you please share:

  1. a link to your site
  2. Your full deploy log
  3. the full error message you are receiving
  4. your project repo if possible.

9:30:30 AM: Build ready to start
9:30:31 AM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)
9:30:31 AM: build-image tag: v4.8.0
9:30:31 AM: buildbot version: e58b6be665675c0f99b33132a8c1eec1f775eba1
9:30:31 AM: Fetching cached dependencies
9:30:32 AM: Starting to download cache of 236.4MB
9:30:35 AM: Finished downloading cache in 3.594325945s
9:30:35 AM: Starting to extract cache
9:30:42 AM: Finished extracting cache in 6.890722915s
9:30:42 AM: Finished fetching cache in 10.514613299s
9:30:42 AM: Starting to prepare the repo for build
9:30:42 AM: Preparing Git Reference refs/heads/main
9:30:43 AM: Parsing package.json dependencies
9:30:44 AM: Starting build script
9:30:44 AM: Installing dependencies
9:30:44 AM: Python version set to 2.7
9:30:44 AM: Started restoring cached node version
9:30:45 AM: Finished restoring cached node version
9:30:46 AM: v16.14.2 is already installed.
9:30:46 AM: Now using node v16.14.2 (npm v8.5.0)
9:30:46 AM: Started restoring cached build plugins
9:30:46 AM: Finished restoring cached build plugins
9:30:46 AM: Attempting ruby version 2.7.2, read from environment
9:30:47 AM: Using ruby version 2.7.2
9:30:48 AM: Using PHP version 8.0
9:30:48 AM: No npm workspaces detected
9:30:48 AM: Started restoring cached node modules
9:30:48 AM: Finished restoring cached node modules
9:30:48 AM: Started restoring cached go cache
9:30:48 AM: Finished restoring cached go cache
9:30:48 AM: go version go1.16.5 linux/amd64
9:30:48 AM: go version go1.16.5 linux/amd64
9:30:48 AM: Installing missing commands
9:30:48 AM: Verify run directory
9:30:50 AM: ​
9:30:50 AM: ────────────────────────────────────────────────────────────────
9:30:50 AM: Netlify Build
9:30:50 AM: ────────────────────────────────────────────────────────────────
9:30:50 AM: ​
9:30:50 AM: ❯ Version
9:30:50 AM: @netlify/build 27.0.1
9:30:50 AM: ​
9:30:50 AM: ❯ Flags
9:30:50 AM: baseRelDir: true
9:30:50 AM: buildId: 626379deab345d0009bfeab6
9:30:50 AM: deployId: 626379deab345d0009bfeab8
9:30:50 AM: ​
9:30:50 AM: ❯ Current directory
9:30:50 AM: /opt/build/repo
9:30:50 AM: ​
9:30:50 AM: ❯ Config file
9:30:50 AM: No config file was defined: using default values.
9:30:50 AM: ​
9:30:50 AM: ❯ Context
9:30:50 AM: production
9:30:50 AM: ​
9:30:50 AM: ❯ Loading plugins
9:30:50 AM: - @netlify/plugin-nextjs@4.3.2 from Netlify app
9:30:50 AM: ​
9:30:50 AM: ❯ Outdated plugins
9:30:50 AM: - @netlify/plugin-nextjs@4.3.2: latest version is 4.4.2
9:30:50 AM: Migration guide: GitHub - netlify/next-runtime: The Next.js Runtime allows Next.js to run on Netlify with zero configuration
9:30:50 AM: To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (Netlify App)
9:30:52 AM: ​
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM: 1. @netlify/plugin-nextjs (onPreBuild event)
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM: ​
9:30:52 AM: Next.js cache restored.
9:30:52 AM: Netlify configuration property “build.environment.NEXT_PRIVATE_TARGET” value changed.
9:30:52 AM: ​
9:30:52 AM: (@netlify/plugin-nextjs onPreBuild completed in 186ms)
9:30:52 AM: ​
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM: 2. Build command from Netlify app
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM: ​
9:30:52 AM: $ npm run build
9:30:52 AM: > kitty@0.1.0 build
9:30:52 AM: > next build
9:30:53 AM: info - Checking validity of types…
9:30:53 AM: info - Creating an optimized production build…
9:30:53 AM: warn - using beta Middleware (not covered by semver) - beta-middleware | Next.js
9:31:04 AM: info - Compiled successfully
9:31:04 AM: info - Collecting page data…
9:31:05 AM: Sat, 23 Apr 2022 04:01:05 GMT body-parser deprecated undefined extended: provide extended option at .next/server/pages/internal/bakery.js:47:116
9:31:06 AM: Sat, 23 Apr 2022 04:01:06 GMT body-parser deprecated undefined extended: provide extended option at .next/server/pages/internal/dairy.js:251:77
9:31:06 AM: Sat, 23 Apr 2022 04:01:06 GMT body-parser deprecated undefined extended: provide extended option at .next/server/pages/internal/cart.js:51:116
9:31:06 AM: Sat, 23 Apr 2022 04:01:06 GMT body-parser deprecated undefined extended: provide extended option at .next/server/pages/internal/orders.js:51:116
9:31:06 AM: Sat, 23 Apr 2022 04:01:06 GMT body-parser deprecated undefined extended: provide extended option at .next/server/pages/internal/shop.js:162:77
9:31:06 AM: info - Generating static pages (0/10)
9:31:06 AM: info - Generating static pages (2/10)
9:31:06 AM: info - Generating static pages (4/10)
9:31:06 AM: info - Generating static pages (7/10)
9:31:06 AM: info - Generating static pages (10/10)
9:31:06 AM: info - Finalizing page optimization…
9:31:06 AM: Page Size First Load JS
9:31:06 AM: ┌ ○ / 1.31 kB 91.3 kB
9:31:06 AM: ├ /_app 0 B 71.7 kB
9:31:06 AM: ├ ○ /404 282 B 72 kB
9:31:06 AM: ├ λ /api/addtocart 0 B 71.7 kB
9:31:06 AM: ├ λ /api/bakerycart 0 B 71.7 kB
9:31:06 AM: ├ λ /api/hello 0 B 71.7 kB
9:31:06 AM: ├ λ /api/ifttt 0 B 71.7 kB
9:31:06 AM: ├ λ /api/milkcart 0 B 71.7 kB
9:31:06 AM: ├ λ /api/order 0 B 71.7 kB
9:31:06 AM: ├ λ /api/rp 0 B 71.7 kB
9:31:06 AM: ├ λ /api/rpaycb 0 B 71.7 kB
9:31:06 AM: ├ λ /api/signin 0 B 71.7 kB
9:31:06 AM: ├ λ /api/signup 0 B 71.7 kB
9:31:06 AM: ├ λ /api/stytchcreate 0 B 71.7 kB
9:31:06 AM: ├ λ /api/stytchla 0 B 71.7 kB
9:31:06 AM: ├ λ /api/stytchval 0 B 71.7 kB
9:31:06 AM: ├ ○ /estytch 1.09 kB 83.7 kB
9:31:06 AM: ├ ƒ /internal/_middleware 36 kB 108 kB
9:31:06 AM: ├ ○ /internal/[p] 344 B 72.1 kB
9:31:06 AM: ├ λ /internal/bakery 2.39 kB 92.4 kB
9:31:06 AM: ├ λ /internal/cart 2.57 kB 92.6 kB
9:31:06 AM: ├ λ /internal/dairy 2.83 kB 92.8 kB
9:31:06 AM: ├ ○ /internal/dash 2 kB 87.9 kB
9:31:06 AM: ├ λ /internal/orders 2.57 kB 92.6 kB
9:31:06 AM: ├ λ /internal/shop 75.2 kB 216 kB
9:31:06 AM: ├ ○ /internal/shopv2 2.24 kB 74 kB
9:31:06 AM: ├ ○ /internal/test/paytest 1.85 kB 73.6 kB
9:31:06 AM: ├ ○ /signin 3.66 kB 137 kB
9:31:06 AM: ├ ○ /signup 3.68 kB 137 kB
9:31:06 AM: └ ○ /status 2.97 kB 74.7 kB
9:31:06 AM: + First Load JS shared by all 71.7 kB
9:31:06 AM: ├ chunks/framework-5f4595e5518b5600.js 42 kB
9:31:06 AM: ├ chunks/main-a4d9e436b9a532ca.js 27.9 kB
9:31:06 AM: ├ chunks/pages/_app-58a9df30467a7686.js 688 B
9:31:06 AM: ├ chunks/webpack-42cdea76c8170223.js 1.07 kB
9:31:06 AM: └ css/46354e13114be352.css 25.1 kB
9:31:06 AM: ƒ (Middleware) intercepts requests (uses _middleware)
9:31:06 AM: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
9:31:06 AM: ○ (Static) automatically rendered as static HTML (uses no initial props)
9:31:06 AM: ​
9:31:06 AM: (build.command completed in 14.5s)
9:31:06 AM: ​
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: 3. @netlify/plugin-nextjs (onBuild event)
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: ​
9:31:06 AM: Patching /opt/build/repo/node_modules/next/dist/server/base-server.js
9:31:06 AM: Done
9:31:06 AM: Moving static page files to serve from CDN…
9:31:06 AM: Moved 5 files
9:31:06 AM: Skipped moving 3 files because they match middleware, so cannot be deployed to the CDN and will be served from the origin instead.
9:31:06 AM: This is fine, but we’re letting you know because it may not be what you expect.
The following middleware matched statically-rendered pages:
9:31:06 AM: - /internal/_middleware
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: The following files matched middleware and were not moved to the CDN:
9:31:06 AM: - internal/dash.html
9:31:06 AM: - internal/shopv2.html
9:31:06 AM: - internal/test/paytest.html
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: Netlify configuration property “redirects” value changed to [
9:31:06 AM: { from: ‘/next/static/', to: ‘/static/:splat’, status: 200 },
9:31:06 AM: {
9:31:06 AM: from: '/_next/image
’,
9:31:06 AM: query: { url: ‘:url’, w: ‘:width’, q: ‘:quality’ },
9:31:06 AM: to: '/ipx/w:width,q
:quality/:url’,
9:31:06 AM: status: 301
9:31:06 AM: },
9:31:06 AM: { from: ‘/_ipx/', to: ‘/.netlify/builders/_ipx’, status: 200 },
9:31:06 AM: { from: '/cache/
’, to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: { from: ‘/server/', to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: { from: '/serverless/
’, to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: { from: ‘/trace’, to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: { from: ‘/traces’, to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: {
9:31:06 AM: from: ‘/routes-manifest.json’,
9:31:06 AM: to: ‘/404.html’,
9:31:06 AM: status: 404,
9:31:06 AM: force: true
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/build-manifest.json’,
9:31:06 AM: to: ‘/404.html’,
9:31:06 AM: status: 404,
9:31:06 AM: force: true
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/prerender-manifest.json’,
9:31:06 AM: to: ‘/404.html’,
9:31:06 AM: status: 404,
9:31:06 AM: force: true
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/react-loadable-manifest.json’,
9:31:06 AM: to: ‘/404.html’,
9:31:06 AM: status: 404,
9:31:06 AM: force: true
9:31:06 AM: },
9:31:06 AM: { from: ‘/BUILD_ID’, to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: {
9:31:06 AM: from: ‘/api’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/api/',
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/blog.png’,
9:31:06 AM: to: ‘/blog.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/bread.png’,
9:31:06 AM: to: ‘/bread.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/chef.jpg’,
9:31:06 AM: to: ‘/chef.jpg’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/cl.png’,
9:31:06 AM: to: ‘/cl.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/cooking.gif’,
9:31:06 AM: to: ‘/cooking.gif’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/favicon.ico’,
9:31:06 AM: to: ‘/favicon.ico’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/food.png’,
9:31:06 AM: to: ‘/food.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/fun.png’,
9:31:06 AM: to: ‘/fun.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/icon-192x192.png’,
9:31:06 AM: to: ‘/icon-192x192.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/icon-256x256.png’,
9:31:06 AM: to: ‘/icon-256x256.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/icon-384x384.png’,
9:31:06 AM: to: ‘/icon-384x384.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/icon-512x512.png’,
9:31:06 AM: to: ‘/icon-512x512.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/meow.webp’,
9:31:06 AM: to: ‘/meow.webp’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/milk-jar.png’,
9:31:06 AM: to: ‘/milk-jar.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/pf.png’,
9:31:06 AM: to: ‘/pf.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/vercel.svg’,
9:31:06 AM: to: ‘/vercel.svg’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: '/
’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: force: true
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/',
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: '/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/
’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/index.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/404.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/404’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/estytch.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/estytch’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/bakery.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/bakery’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/cart.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/cart’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/dairy.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/dairy’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/dash.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/dash’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/orders.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/orders’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/shop.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/shop’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/shopv2.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/shopv2’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/test/paytest.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/test/paytest’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/signin.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/signin’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/signup.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/signup’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/status.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/status’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/:p.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/:p’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/*’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: }
9:31:06 AM: ].
9:31:06 AM: ​
9:31:06 AM: (@netlify/plugin-nextjs onBuild completed in 84ms)
9:31:06 AM: ​
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: 4. Functions bundling
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: ​
9:31:06 AM: Packaging Functions from .netlify/functions-internal directory:
9:31:06 AM: - ___netlify-handler/___netlify-handler.js
9:31:06 AM: - ___netlify-odb-handler/___netlify-odb-handler.js
9:31:06 AM: - _ipx/_ipx.js
9:31:06 AM: ​
9:31:32 AM: ​
9:31:32 AM: (Functions bundling completed in 25.3s)
9:31:32 AM: ​
9:31:32 AM: ────────────────────────────────────────────────────────────────
9:31:32 AM: 5. @netlify/plugin-nextjs (onPostBuild event)
9:31:32 AM: ────────────────────────────────────────────────────────────────
9:31:32 AM: ​
9:31:32 AM: Next.js cache saved.
9:31:32 AM: ​
9:31:32 AM: (@netlify/plugin-nextjs onPostBuild completed in 237ms)
9:31:32 AM: ​
9:31:32 AM: ────────────────────────────────────────────────────────────────
9:31:32 AM: 6. Deploy site
9:31:32 AM: ────────────────────────────────────────────────────────────────
9:31:32 AM: ​
9:31:32 AM: Starting to deploy site from ‘.next’
9:31:32 AM: Creating deploy tree
9:31:32 AM: Creating deploy upload records
9:31:33 AM: 53 new files to upload
9:31:33 AM: 2 new functions to upload
9:31:44 AM: Site deploy was successfully initiated
9:31:44 AM: ​
9:31:44 AM: (Deploy site completed in 12.5s)
9:31:45 AM: ​
9:31:45 AM: ────────────────────────────────────────────────────────────────
9:31:45 AM: Netlify Build Complete
9:31:45 AM: Starting post processing
9:31:45 AM: ────────────────────────────────────────────────────────────────
9:31:45 AM: ​
9:31:45 AM: (Netlify Build completed in 54.8s)
9:31:45 AM: Caching artifacts
9:31:45 AM: Started saving node modules
9:31:45 AM: Finished saving node modules
9:31:45 AM: Started saving build plugins
9:31:45 AM: Finished saving build plugins
9:31:45 AM: Started saving pip cache
9:31:45 AM: Post processing - HTML
9:31:45 AM: Finished saving pip cache
9:31:45 AM: Started saving emacs cask dependencies
9:31:45 AM: Finished saving emacs cask dependencies
9:31:45 AM: Started saving maven dependencies
9:31:45 AM: Finished saving maven dependencies
9:31:45 AM: Started saving boot dependencies
9:31:45 AM: Finished saving boot dependencies
9:31:45 AM: Started saving rust rustup cache
9:31:45 AM: Finished saving rust rustup cache
9:31:45 AM: Started saving go dependencies
9:31:45 AM: Finished saving go dependencies
9:31:45 AM: Build script success
9:31:47 AM: Post processing - header rules
9:31:47 AM: Post processing - redirect rules
9:31:47 AM: Post processing done
9:31:51 AM: Site is live :sparkles:
9:32:25 AM: Finished processing build request in 1m53.914874655s

ERROR:
paytest-e5b21f2c89e28702.js:1

   POST https://fastidious-blini-ce1070.netlify.app/api/rp 500

(anonymous) @ paytest-e5b21f2c89e28702.js:1
s @ main-a4d9e436b9a532ca.js:1
(anonymous) @ main-a4d9e436b9a532ca.js:1
P.forEach.e. @ main-a4d9e436b9a532ca.js:1
a @ paytest-e5b21f2c89e28702.js:1
c @ paytest-e5b21f2c89e28702.js:1
(anonymous) @ paytest-e5b21f2c89e28702.js:1
(anonymous) @ paytest-e5b21f2c89e28702.js:1
e @ paytest-e5b21f2c89e28702.js:1
onClick @ paytest-e5b21f2c89e28702.js:1
$e @ framework-5f4595e5518b5600.js:1
Ye @ framework-5f4595e5518b5600.js:1
(anonymous) @ framework-5f4595e5518b5600.js:1
Nr @ framework-5f4595e5518b5600.js:1
Tr @ framework-5f4595e5518b5600.js:1
(anonymous) @ framework-5f4595e5518b5600.js:1
Ie @ framework-5f4595e5518b5600.js:1
(anonymous) @ framework-5f4595e5518b5600.js:1
Fr @ framework-5f4595e5518b5600.js:1
Jt @ framework-5f4595e5518b5600.js:1
Zt @ framework-5f4595e5518b5600.js:1
t.unstable_runWithPriority @ framework-5f4595e5518b5600.js:1
Ql @ framework-5f4595e5518b5600.js:1
Me @ framework-5f4595e5518b5600.js:1
Xt @ framework-5f4595e5518b5600.js:1
VM43:1

   Uncaught (in promise) SyntaxError: Unexpected token I in JSON at position 0

    
  [foodque](https://fastidious-blini-ce1070.netlify.app/internal/test/paytest)

9:30:30 AM: Build ready to start
9:30:31 AM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)
9:30:31 AM: build-image tag: v4.8.0
9:30:31 AM: buildbot version: e58b6be665675c0f99b33132a8c1eec1f775eba1
9:30:31 AM: Fetching cached dependencies
9:30:32 AM: Starting to download cache of 236.4MB
9:30:35 AM: Finished downloading cache in 3.594325945s
9:30:35 AM: Starting to extract cache
9:30:42 AM: Finished extracting cache in 6.890722915s
9:30:42 AM: Finished fetching cache in 10.514613299s
9:30:42 AM: Starting to prepare the repo for build
9:30:42 AM: Preparing Git Reference refs/heads/main
9:30:43 AM: Parsing package.json dependencies
9:30:44 AM: Starting build script
9:30:44 AM: Installing dependencies
9:30:44 AM: Python version set to 2.7
9:30:44 AM: Started restoring cached node version
9:30:45 AM: Finished restoring cached node version
9:30:46 AM: v16.14.2 is already installed.
9:30:46 AM: Now using node v16.14.2 (npm v8.5.0)
9:30:46 AM: Started restoring cached build plugins
9:30:46 AM: Finished restoring cached build plugins
9:30:46 AM: Attempting ruby version 2.7.2, read from environment
9:30:47 AM: Using ruby version 2.7.2
9:30:48 AM: Using PHP version 8.0
9:30:48 AM: No npm workspaces detected
9:30:48 AM: Started restoring cached node modules
9:30:48 AM: Finished restoring cached node modules
9:30:48 AM: Started restoring cached go cache
9:30:48 AM: Finished restoring cached go cache
9:30:48 AM: go version go1.16.5 linux/amd64
9:30:48 AM: go version go1.16.5 linux/amd64
9:30:48 AM: Installing missing commands
9:30:48 AM: Verify run directory
9:30:50 AM: ​
9:30:50 AM: ────────────────────────────────────────────────────────────────
9:30:50 AM: Netlify Build
9:30:50 AM: ────────────────────────────────────────────────────────────────
9:30:50 AM: ​
9:30:50 AM: ❯ Version
9:30:50 AM: @netlify/build 27.0.1
9:30:50 AM: ​
9:30:50 AM: ❯ Flags
9:30:50 AM: baseRelDir: true
9:30:50 AM: buildId: 626379deab345d0009bfeab6
9:30:50 AM: deployId: 626379deab345d0009bfeab8
9:30:50 AM: ​
9:30:50 AM: ❯ Current directory
9:30:50 AM: /opt/build/repo
9:30:50 AM: ​
9:30:50 AM: ❯ Config file
9:30:50 AM: No config file was defined: using default values.
9:30:50 AM: ​
9:30:50 AM: ❯ Context
9:30:50 AM: production
9:30:50 AM: ​
9:30:50 AM: ❯ Loading plugins
9:30:50 AM: - @netlify/plugin-nextjs@4.3.2 from Netlify app
9:30:50 AM: ​
9:30:50 AM: ❯ Outdated plugins
9:30:50 AM: - @netlify/plugin-nextjs@4.3.2: latest version is 4.4.2
9:30:50 AM: Migration guide: GitHub - netlify/next-runtime: The Next.js Runtime allows Next.js to run on Netlify with zero configuration
9:30:50 AM: To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (Netlify App)
9:30:52 AM: ​
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM: 1. @netlify/plugin-nextjs (onPreBuild event)
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM: ​
9:30:52 AM: Next.js cache restored.
9:30:52 AM: Netlify configuration property “build.environment.NEXT_PRIVATE_TARGET” value changed.
9:30:52 AM: ​
9:30:52 AM: (@netlify/plugin-nextjs onPreBuild completed in 186ms)
9:30:52 AM: ​
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM: 2. Build command from Netlify app
9:30:52 AM: ────────────────────────────────────────────────────────────────
9:30:52 AM: ​
9:30:52 AM: $ npm run build
9:30:52 AM: > kitty@0.1.0 build
9:30:52 AM: > next build
9:30:53 AM: info - Checking validity of types…
9:30:53 AM: info - Creating an optimized production build…
9:30:53 AM: warn - using beta Middleware (not covered by semver) - beta-middleware | Next.js
9:31:04 AM: info - Compiled successfully
9:31:04 AM: info - Collecting page data…
9:31:05 AM: Sat, 23 Apr 2022 04:01:05 GMT body-parser deprecated undefined extended: provide extended option at .next/server/pages/internal/bakery.js:47:116
9:31:06 AM: Sat, 23 Apr 2022 04:01:06 GMT body-parser deprecated undefined extended: provide extended option at .next/server/pages/internal/dairy.js:251:77
9:31:06 AM: Sat, 23 Apr 2022 04:01:06 GMT body-parser deprecated undefined extended: provide extended option at .next/server/pages/internal/cart.js:51:116
9:31:06 AM: Sat, 23 Apr 2022 04:01:06 GMT body-parser deprecated undefined extended: provide extended option at .next/server/pages/internal/orders.js:51:116
9:31:06 AM: Sat, 23 Apr 2022 04:01:06 GMT body-parser deprecated undefined extended: provide extended option at .next/server/pages/internal/shop.js:162:77
9:31:06 AM: info - Generating static pages (0/10)
9:31:06 AM: info - Generating static pages (2/10)
9:31:06 AM: info - Generating static pages (4/10)
9:31:06 AM: info - Generating static pages (7/10)
9:31:06 AM: info - Generating static pages (10/10)
9:31:06 AM: info - Finalizing page optimization…
9:31:06 AM: Page Size First Load JS
9:31:06 AM: ┌ ○ / 1.31 kB 91.3 kB
9:31:06 AM: ├ /_app 0 B 71.7 kB
9:31:06 AM: ├ ○ /404 282 B 72 kB
9:31:06 AM: ├ λ /api/addtocart 0 B 71.7 kB
9:31:06 AM: ├ λ /api/bakerycart 0 B 71.7 kB
9:31:06 AM: ├ λ /api/hello 0 B 71.7 kB
9:31:06 AM: ├ λ /api/ifttt 0 B 71.7 kB
9:31:06 AM: ├ λ /api/milkcart 0 B 71.7 kB
9:31:06 AM: ├ λ /api/order 0 B 71.7 kB
9:31:06 AM: ├ λ /api/rp 0 B 71.7 kB
9:31:06 AM: ├ λ /api/rpaycb 0 B 71.7 kB
9:31:06 AM: ├ λ /api/signin 0 B 71.7 kB
9:31:06 AM: ├ λ /api/signup 0 B 71.7 kB
9:31:06 AM: ├ λ /api/stytchcreate 0 B 71.7 kB
9:31:06 AM: ├ λ /api/stytchla 0 B 71.7 kB
9:31:06 AM: ├ λ /api/stytchval 0 B 71.7 kB
9:31:06 AM: ├ ○ /estytch 1.09 kB 83.7 kB
9:31:06 AM: ├ ƒ /internal/_middleware 36 kB 108 kB
9:31:06 AM: ├ ○ /internal/[p] 344 B 72.1 kB
9:31:06 AM: ├ λ /internal/bakery 2.39 kB 92.4 kB
9:31:06 AM: ├ λ /internal/cart 2.57 kB 92.6 kB
9:31:06 AM: ├ λ /internal/dairy 2.83 kB 92.8 kB
9:31:06 AM: ├ ○ /internal/dash 2 kB 87.9 kB
9:31:06 AM: ├ λ /internal/orders 2.57 kB 92.6 kB
9:31:06 AM: ├ λ /internal/shop 75.2 kB 216 kB
9:31:06 AM: ├ ○ /internal/shopv2 2.24 kB 74 kB
9:31:06 AM: ├ ○ /internal/test/paytest 1.85 kB 73.6 kB
9:31:06 AM: ├ ○ /signin 3.66 kB 137 kB
9:31:06 AM: ├ ○ /signup 3.68 kB 137 kB
9:31:06 AM: └ ○ /status 2.97 kB 74.7 kB
9:31:06 AM: + First Load JS shared by all 71.7 kB
9:31:06 AM: ├ chunks/framework-5f4595e5518b5600.js 42 kB
9:31:06 AM: ├ chunks/main-a4d9e436b9a532ca.js 27.9 kB
9:31:06 AM: ├ chunks/pages/_app-58a9df30467a7686.js 688 B
9:31:06 AM: ├ chunks/webpack-42cdea76c8170223.js 1.07 kB
9:31:06 AM: └ css/46354e13114be352.css 25.1 kB
9:31:06 AM: ƒ (Middleware) intercepts requests (uses _middleware)
9:31:06 AM: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
9:31:06 AM: ○ (Static) automatically rendered as static HTML (uses no initial props)
9:31:06 AM: ​
9:31:06 AM: (build.command completed in 14.5s)
9:31:06 AM: ​
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: 3. @netlify/plugin-nextjs (onBuild event)
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: ​
9:31:06 AM: Patching /opt/build/repo/node_modules/next/dist/server/base-server.js
9:31:06 AM: Done
9:31:06 AM: Moving static page files to serve from CDN…
9:31:06 AM: Moved 5 files
9:31:06 AM: Skipped moving 3 files because they match middleware, so cannot be deployed to the CDN and will be served from the origin instead.
9:31:06 AM: This is fine, but we’re letting you know because it may not be what you expect.
The following middleware matched statically-rendered pages:
9:31:06 AM: - /internal/_middleware
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: The following files matched middleware and were not moved to the CDN:
9:31:06 AM: - internal/dash.html
9:31:06 AM: - internal/shopv2.html
9:31:06 AM: - internal/test/paytest.html
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: Netlify configuration property “redirects” value changed to [
9:31:06 AM: { from: ‘/next/static/', to: ‘/static/:splat’, status: 200 },
9:31:06 AM: {
9:31:06 AM: from: '/_next/image
’,
9:31:06 AM: query: { url: ‘:url’, w: ‘:width’, q: ‘:quality’ },
9:31:06 AM: to: '/ipx/w:width,q
:quality/:url’,
9:31:06 AM: status: 301
9:31:06 AM: },
9:31:06 AM: { from: ‘/_ipx/', to: ‘/.netlify/builders/_ipx’, status: 200 },
9:31:06 AM: { from: '/cache/
’, to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: { from: ‘/server/', to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: { from: '/serverless/
’, to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: { from: ‘/trace’, to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: { from: ‘/traces’, to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: {
9:31:06 AM: from: ‘/routes-manifest.json’,
9:31:06 AM: to: ‘/404.html’,
9:31:06 AM: status: 404,
9:31:06 AM: force: true
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/build-manifest.json’,
9:31:06 AM: to: ‘/404.html’,
9:31:06 AM: status: 404,
9:31:06 AM: force: true
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/prerender-manifest.json’,
9:31:06 AM: to: ‘/404.html’,
9:31:06 AM: status: 404,
9:31:06 AM: force: true
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/react-loadable-manifest.json’,
9:31:06 AM: to: ‘/404.html’,
9:31:06 AM: status: 404,
9:31:06 AM: force: true
9:31:06 AM: },
9:31:06 AM: { from: ‘/BUILD_ID’, to: ‘/404.html’, status: 404, force: true },
9:31:06 AM: {
9:31:06 AM: from: ‘/api’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/api/',
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/blog.png’,
9:31:06 AM: to: ‘/blog.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/bread.png’,
9:31:06 AM: to: ‘/bread.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/chef.jpg’,
9:31:06 AM: to: ‘/chef.jpg’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/cl.png’,
9:31:06 AM: to: ‘/cl.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/cooking.gif’,
9:31:06 AM: to: ‘/cooking.gif’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/favicon.ico’,
9:31:06 AM: to: ‘/favicon.ico’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/food.png’,
9:31:06 AM: to: ‘/food.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/fun.png’,
9:31:06 AM: to: ‘/fun.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/icon-192x192.png’,
9:31:06 AM: to: ‘/icon-192x192.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/icon-256x256.png’,
9:31:06 AM: to: ‘/icon-256x256.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/icon-384x384.png’,
9:31:06 AM: to: ‘/icon-384x384.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/icon-512x512.png’,
9:31:06 AM: to: ‘/icon-512x512.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/meow.webp’,
9:31:06 AM: to: ‘/meow.webp’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/milk-jar.png’,
9:31:06 AM: to: ‘/milk-jar.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/pf.png’,
9:31:06 AM: to: ‘/pf.png’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/vercel.svg’,
9:31:06 AM: to: ‘/vercel.svg’,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: '/
’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: conditions: { Cookie: [Array] },
9:31:06 AM: force: true
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/',
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: '/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/
’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/index.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/404.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/404’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/estytch.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/estytch’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/bakery.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/bakery’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/cart.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/cart’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/dairy.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/dairy’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/dash.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/dash’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/orders.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/orders’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/shop.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/shop’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/shopv2.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/shopv2’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/test/paytest.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/test/paytest’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/signin.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/signin’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/signup.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/signup’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/status.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/status’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/_next/data/H5BeBmegWVGyrbhwhl2rF/internal/:p.json’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/internal/:p’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200,
9:31:06 AM: force: false
9:31:06 AM: },
9:31:06 AM: {
9:31:06 AM: from: ‘/*’,
9:31:06 AM: to: ‘/.netlify/functions/___netlify-handler’,
9:31:06 AM: status: 200
9:31:06 AM: }
9:31:06 AM: ].
9:31:06 AM: ​
9:31:06 AM: (@netlify/plugin-nextjs onBuild completed in 84ms)
9:31:06 AM: ​
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: 4. Functions bundling
9:31:06 AM: ────────────────────────────────────────────────────────────────
9:31:06 AM: ​
9:31:06 AM: Packaging Functions from .netlify/functions-internal directory:
9:31:06 AM: - ___netlify-handler/___netlify-handler.js
9:31:06 AM: - ___netlify-odb-handler/___netlify-odb-handler.js
9:31:06 AM: - _ipx/_ipx.js
9:31:06 AM: ​
9:31:32 AM: ​
9:31:32 AM: (Functions bundling completed in 25.3s)
9:31:32 AM: ​
9:31:32 AM: ────────────────────────────────────────────────────────────────
9:31:32 AM: 5. @netlify/plugin-nextjs (onPostBuild event)
9:31:32 AM: ────────────────────────────────────────────────────────────────
9:31:32 AM: ​
9:31:32 AM: Next.js cache saved.
9:31:32 AM: ​
9:31:32 AM: (@netlify/plugin-nextjs onPostBuild completed in 237ms)
9:31:32 AM: ​
9:31:32 AM: ────────────────────────────────────────────────────────────────
9:31:32 AM: 6. Deploy site
9:31:32 AM: ────────────────────────────────────────────────────────────────
9:31:32 AM: ​
9:31:32 AM: Starting to deploy site from ‘.next’
9:31:32 AM: Creating deploy tree
9:31:32 AM: Creating deploy upload records
9:31:33 AM: 53 new files to upload
9:31:33 AM: 2 new functions to upload
9:31:44 AM: Site deploy was successfully initiated
9:31:44 AM: ​
9:31:44 AM: (Deploy site completed in 12.5s)
9:31:45 AM: ​
9:31:45 AM: ────────────────────────────────────────────────────────────────
9:31:45 AM: Netlify Build Complete
9:31:45 AM: Starting post processing
9:31:45 AM: ────────────────────────────────────────────────────────────────
9:31:45 AM: ​
9:31:45 AM: (Netlify Build completed in 54.8s)
9:31:45 AM: Caching artifacts
9:31:45 AM: Started saving node modules
9:31:45 AM: Finished saving node modules
9:31:45 AM: Started saving build plugins
9:31:45 AM: Finished saving build plugins
9:31:45 AM: Started saving pip cache
9:31:45 AM: Post processing - HTML
9:31:45 AM: Finished saving pip cache
9:31:45 AM: Started saving emacs cask dependencies
9:31:45 AM: Finished saving emacs cask dependencies
9:31:45 AM: Started saving maven dependencies
9:31:45 AM: Finished saving maven dependencies
9:31:45 AM: Started saving boot dependencies
9:31:45 AM: Finished saving boot dependencies
9:31:45 AM: Started saving rust rustup cache
9:31:45 AM: Finished saving rust rustup cache
9:31:45 AM: Started saving go dependencies
9:31:45 AM: Finished saving go dependencies
9:31:45 AM: Build script success
9:31:47 AM: Post processing - header rules
9:31:47 AM: Post processing - redirect rules
9:31:47 AM: Post processing done
9:31:51 AM: Site is live :sparkles:
9:32:25 AM: Finished processing build request in 1m53.914874655s


ERROR:
paytest-e5b21f2c89e28702.js:1

   POST https://fastidious-blini-ce1070.netlify.app/api/rp 500

(anonymous) @ paytest-e5b21f2c89e28702.js:1
s @ main-a4d9e436b9a532ca.js:1
(anonymous) @ main-a4d9e436b9a532ca.js:1
P.forEach.e. @ main-a4d9e436b9a532ca.js:1
a @ paytest-e5b21f2c89e28702.js:1
c @ paytest-e5b21f2c89e28702.js:1
(anonymous) @ paytest-e5b21f2c89e28702.js:1
(anonymous) @ paytest-e5b21f2c89e28702.js:1
e @ paytest-e5b21f2c89e28702.js:1
onClick @ paytest-e5b21f2c89e28702.js:1
$e @ framework-5f4595e5518b5600.js:1
Ye @ framework-5f4595e5518b5600.js:1
(anonymous) @ framework-5f4595e5518b5600.js:1
Nr @ framework-5f4595e5518b5600.js:1
Tr @ framework-5f4595e5518b5600.js:1
(anonymous) @ framework-5f4595e5518b5600.js:1
Ie @ framework-5f4595e5518b5600.js:1
(anonymous) @ framework-5f4595e5518b5600.js:1
Fr @ framework-5f4595e5518b5600.js:1
Jt @ framework-5f4595e5518b5600.js:1
Zt @ framework-5f4595e5518b5600.js:1
t.unstable_runWithPriority @ framework-5f4595e5518b5600.js:1
Ql @ framework-5f4595e5518b5600.js:1
Me @ framework-5f4595e5518b5600.js:1
Xt @ framework-5f4595e5518b5600.js:1
VM43:1

   Uncaught (in promise) SyntaxError: Unexpected token I in JSON at position 0

https://fastidious-blini-ce1070.netlify.app/internal/test/paytest

hello hillary , i just checked the real time log for this function and found this error :
ERROR Error: key_id is mandatory which is thrown by a razorpay object (RAZORPAY is the payment provider i m testing)
so looks like its the problem with that
so thanks for your help and a swift response
God bless you