9 months ago
Help with my project, I have my api within nextjs but all the endpoints work except the inventory and stock endpoint, which is the same, only one used it for doubts, in production they don't work for me but locally they do, I've been using this for two days problem and I would like to get help about it, I leave the link to the repository
https://github.com/alfonsoHR98/approil.git
1 Replies
9 months ago
Unknown field product
for include statement on model Stock
. Available options are marked with ?.
at Dn (/app/node_modules/@prisma/client/runtime/library.js:114:8082)
at Mn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7396)
at Mn.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:121:7061)
at Mn.request (/app/node_modules/@prisma/client/runtime/library.js:121:6745)
at async l (/app/node_modules/@prisma/client/runtime/library.js:130:9633)
at async p (/app/.next/server/app/api/stock/detail/route.js:1:532)
at async /app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:36938
at async eC.execute (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:27552)
at async eC.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:38272)
at async doRender (/app/node_modules/next/dist/server/base-server.js:1345:42) {
clientVersion: '5.20.0'
}
2024-09-26 19:51:58.755 UTC [73] LOG: checkpoint starting: time
2024-09-26 19:51:58.916 UTC [73] LOG: checkpoint complete: wrote 2 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.103 s, sync=0.004 s, total=0.161 s; sync files=2, longest=0.003 s, average=0.002 s; distance=2 kB, estimate=3729 kB; lsn=0/1578EBF8, redo lsn=0/1578EBC0
2024-09-26 19:53:12.048 UTC [99498] LOG: could not receive data from client: Connection reset by peer
2024-09-26 19:53:18.781 UTC [99500] FATAL: terminating connection due to administrator command
2024-09-26 19:53:18.883 UTC [73] LOG: checkpoint starting: immediate force wait
2024-09-26 19:53:18.897 UTC [73] LOG: checkpoint complete: wrote 5 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.003 s, sync=0.003 s, total=0.014 s; sync files=5, longest=0.002 s, average=0.001 s; distance=4593 kB, estimate=4593 kB; lsn=0/15C0B330, redo lsn=0/15C0B2F8
2024-09-26 19:53:27.208 UTC [99502] FATAL: terminating connection due to administrator command
2024-09-26 19:53:27.318 UTC [73] LOG: checkpoint starting: immediate force wait
2024-09-26 19:53:27.359 UTC [73] LOG: checkpoint complete: wrote 11 buffers (0.1%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.004 s, sync=0.025 s, total=0.041 s; sync files=10, longest=0.022 s, average=0.003 s; distance=4594 kB, estimate=4594 kB; lsn=0/16087B70, redo lsn=0/16087B38
2024-09-26 19:53:33.387 UTC [99503] FATAL: terminating connection due to administrator command
2024-09-26 19:53:33.489 UTC [73] LOG: checkpoint starting: immediate force wait
2024-09-26 19:53:33.503 UTC [73] LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.003 s, sync=0.003 s, total=0.014 s; sync files=4, longest=0.002 s, average=0.001 s; distance=4594 kB, estimate=4594 kB; lsn=0/16504500, redo lsn=0/165044C8
2024-09-26 19:53:38.681 UTC [99504] FATAL: terminating connection due to administrator command
2024-09-26 19:53:38.783 UTC [73] LOG: checkpoint starting: immediate force wait
2024-09-26 19:53:38.797 UTC [73] LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.003 s, sync=0.003 s, total=0.015 s; sync files=4, longest=0.002 s, average=0.001 s; distance=4594 kB, estimate=4594 kB; lsn=0/16980F38, redo lsn=0/16980F00
2024-09-26 19:53:40.487 UTC [99499] LOG: could not receive data from client: Connection reset by peer
2024-09-26 19:54:45.335 UTC [99512] LOG: could not receive data from client: Connection reset by peer
2024-09-26 19:54:45.335 UTC [99510] LOG: could not receive data from client: Connection reset by peer