I triggered a redeploy on production/app host site and now I get a 500 Internal Server Error - only for a specific page, it seems. How can I go about identifying what caused it without access to the server logs?
There have been no actual code changes with the new deploy, so whatever caused it must be related to changes made in Plasmic Studio.
After a few minutes and a few dozen refreshes, without changing anything, the site resurfaced and I no longer get a server error.
I would still like to know what exactly happened there.
If you are able to deploy to a host like Netlify or Vercel, then you can see the error logs - just sharing in case it unblocks you, that would be the fastest way for you to track down the issue
Ok, I found the error in Netlify logs - it was under Functions > Function Next.js ISR Handler:
Jun 18, 01:22:13 PM: b0ec3187 ERROR FetchError: request to <https://codegen.plasmic.app/api/v1/loader/code/published?platform=nextjs&projectId=6YHa>... failed, reason: Client network socket disconnected before secure TLS connection was establishedJun 18, 01:22:13 PM: b0ec3187 ERROR at ClientRequest.<anonymous> (/var/task/node_modules/node-fetch-cjs/dist/index.js:5372:14)Jun 18, 01:22:13 PM: b0ec3187 ERROR at ClientRequest.emit (node:events:513:28)Jun 18, 01:22:13 PM: b0ec3187 ERROR at TLSSocket.socketErrorListener (node:_http_client:502:9)Jun 18, 01:22:13 PM: b0ec3187 ERROR at TLSSocket.emit (node:events:513:28)Jun 18, 01:22:13 PM: b0ec3187 ERROR at emitErrorNT (node:internal/streams/destroy:151:8)Jun 18, 01:22:13 PM: b0ec3187 ERROR at emitErrorCloseNT (node:internal/streams/destroy:116:3)Jun 18, 01:22:13 PM: b0ec3187 ERROR at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {Jun 18, 01:22:13 PM: b0ec3187 ERROR type: 'system',Jun 18, 01:22:13 PM: b0ec3187 ERROR errno: 'ECONNRESET',Jun 18, 01:22:13 PM: b0ec3187 ERROR code: 'ECONNRESET',Jun 18, 01:22:13 PM: b0ec3187 ERROR erroredSysCall: undefinedJun 18, 01:22:13 PM: b0ec3187 ERROR }
@exhaustive_panther have you solved this issue? i have same problem, my page work fine on nonprod domain, but show 500 in prod with production tag
This is an old thread, you might be experiencing a different issue. Can you provide the project ID and domain that’s returning 500?
projectId: xhANK7EabP9g6tPMWaPNiF
@vu_vi_t-hoang That’s odd, I am seeing:
https://onehub.vn/tnc/test - no console errors
https://uat.cus.cobroker.dev/tnc/test - blocked by cloudflare (maybe region locked)?
The logs in your first image are cut off, but the failing request looks odd. Is there a code component or query on the page that could be triggering it?
yes you can’t access https://uat.cus.cobroker.dev because of out company’s cloudflare blocked, i think this issue came from cloudflare, plasmic api call form server side and it’s blocked


