Web appOpen in Telegram
NNext.js

Next.js

@nextjs · group · Tech · indexed since 2026-07-05
5 050members−54 in a week
13writing in 30 days
43messages in 30 days
51 944messages in the index
  1. .
    Text exactly what you need
Whole thread · 1 reply →
  1. .
    Killall node? That’s not a proxy or anything like that
Whole thread · 2 replies →
M
Hello friends I am building a site with NodeJS, NextJS, Prisma and MySQL and now I have an error that I don't know the reason for. ERROR 1615 (HY000): Prepared statement needs to be re-prepared I have done every test you said The host is also shared with NodeJS Friends, if anyone has experience, I would be grateful if you could help.
Whole thread · 1 reply →
M
Frontend error is 404 in production page and not connecting to database in order page and Backend this error ERROR 1615 (HY000): Prepa red statement needs to be re-prepared
Whole thread · 2 replies →
M
Sure. The issue happens in my production Next.js application when Prisma tries to update records in MySQL. For example, when opening a product page: "/product/product-1789198240883" the API calls "prisma.product.update()" to increment the product's "viewCount", and MySQL returns: "ERROR 1615 (HY000): Prepared statement needs to be re-prepared" The API then returns HTTP 500, and the product page ends up showing a 404. I also reproduced the same problem directly in MySQL, without Prisma: PREPARE s FROM 'UPDATE products SET viewCount = viewCount WHERE id = 2'; EXECUTE s; This produces: "ERROR 1615 (HY000): Prepared statement needs to be re-prepared" Interestingly, a clone of the same table accepts the exact same prepared UPDATE successfully. "CHECK TABLE products" also returns "OK". I have also reduced Prisma's "connection_limit" from 5 to 2 and restarted the application, but the 1615 error still occurs. So I'm trying to determine whether this is a MySQL/InnoDB/metadata issue on the shared hosting server rather than a Next.js issue.
  1. J
    I have GoDaddy vps server WHM and Cpanel How to setup this nginx server ?
    1. .
      server { listen 80; server_name example.com; location / { # Адрес вашего приложения proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_connect_timeout 60s; proxy_send_timeout 60s; proxy_read_timeout 60s; } } server { listen 3000; server_name _; # location / { proxy_pass http://127.0.0.1:3001; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }
    2. V
      Please dm me, I will give u instructions. I am a cloud and DevOps guy
Whole thread · 4 replies →
M
Hi everyone, I’m working on a Next.js application running on a shared hosting environment with Node.js 22, MySQL 8.0.45 (8.0.45-cll-lve), and Prisma 6.19.3. I’ve been experiencing a persistent MySQL error: ERROR 1615 (HY000): Prepared statement needs to be re-prepared The important part is that this is not limited to Prisma or my application code. I can reproduce it directly with MySQL: PREPARE s FROM 'UPDATE products SET viewCount = viewCount WHERE id = 2'; EXECUTE s; I also reproduced the same behavior using the MariaDB Node.js driver with an actual server-side prepared statement. I performed several tests, including rebuilding tables with ALTER TABLE ... FORCE, rebuilding foreign keys, and testing fresh copies of individual tables. Interestingly, freshly created copies often worked, while some of the original tables failed. The most important test was restoring a complete backup of the production database (100 tables) into a completely different database on the same MySQL server. The restored database still produces the same 1615 error on products. So at this point, I cannot confidently say what the exact root cause is, but the problem appears to be related to the current MySQL/hosting environment rather than Prisma itself. I’m therefore considering migrating the application from shared hosting to a VPS while keeping MySQL and Prisma unchanged, rather than changing the database engine to PostgreSQL at the same time. Before I make that move, I’d really appreciate your opinion: 1. Does this behavior suggest a MySQL/server/hosting-level issue? 2. Is there anything specific in a Next.js + Prisma production setup that I should investigate before migrating? 3. Would moving to a standard VPS with a regular MySQL installation be a reasonable way to eliminate the current environment as a variable? 4. Are there any Prisma/MySQL connection-pool or prepared-statement settings I should check during the migration? I’m trying to avoid changing too many variables at
  1. .
    Could you provide prisma scheme and prisma query ?
    1. M
      Hello dear friend. After a lot of effort, I changed Prisma from 6 to 7 and moved the database from shared hosting to VPS and it worked.
      1. .
        It first of all because of mssql don’t you thought about ?) And prisma 7 has a lot of changes) Have a good day
        1. M
          Can you explain more clearly? I mean, I made a mistake by choosing MySQL as the database. Of course, I had no choice, and it was the default of the hosting company and could not be changed.
          1. .
            Okay database yes, but I don’t think that problem was in prisma version As far we go there’s no wrong choices there’s consciously chances that you’ll did )
            1. M
              I'm not very good at coding, and I made it all with AI, and this is my first experience.😄
Whole thread · 6 replies →
A
Prisma 8 that is released recently has really changed in queries. How do you feel about it?
  1. .
    Take your time and enjoy your journey but every time check out every result of your prompt and do it honestly
Whole thread · 1 reply →

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count