We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container logs:
===== Application Startup at 2024-06-05 01:26:36 ===== Prisma schema loaded from prisma/schema.prisma Datasource "db": MySQL database "railway" at "viaduct.proxy.rlwy.net:14649" Error: P1017: Server has closed the connection. npm notice npm notice New minor version of npm available! 10.7.0 -> 10.8.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1 npm notice To update run: npm install -g [email protected] npm notice CRON_EXPRESSION: 0 8 * * * appVersion: v2.3.1 [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [NestFactory] Starting Nest application... [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [InstanceLoader] PrismaModule dependencies initialized +19ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +1ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [InstanceLoader] ThrottlerModule dependencies initialized +6ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [InstanceLoader] TrpcModule dependencies initialized +0ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [InstanceLoader] AppModule dependencies initialized +1ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [InstanceLoader] FeedsModule dependencies initialized +0ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [RoutesResolver] AppController {/}: +9ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [RouterExplorer] Mapped {/, GET} route +2ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [RouterExplorer] Mapped {/robots.txt, GET} route +0ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [RouterExplorer] Mapped {/favicon.ico, GET} route +0ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [RouterExplorer] Mapped {/dash*, GET} route +0ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [RoutesResolver] FeedsController {/feeds}: +1ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [RouterExplorer] Mapped {/feeds, GET} route +0ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [RouterExplorer] Mapped {/feeds/all.(json|rss|atom), GET} route +0ms [Nest] 57 - 06/05/2024, 1:32:53 AM LOG [RouterExplorer] Mapped {/feeds/:feed, GET} route +1ms /app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:113 You may have to run ${$e("prisma generate")} for your changes to take effect.`,this.config.clientVersion);return r}}parseEngineResponse(r){if(!r)throw new j("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(r)}catch{throw new j("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let r=new WeakRef(this),{adapter:t}=this.config;t&&Re("Using driver adapter: %O",t),this.engine=new this.QueryEngineConstructor({datamodel:this.datamodel,env:process.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json"},n=>{r.deref()?.logger(n)},t),$a++}catch(r){let t=r,n=this.parseInitError(t.message);throw typeof n=="string"?t:new S(n.message,this.config.clientVersion,n.error_code)}}}logger(r){let t=this.parseEngineResponse(r);if(t){if("span"in t){this.config.tracingHelper.createEngineSpan(t);return}t.level=t?.level.toLowerCase()??"unknown",mm(t)?this.logEmitter.emit("query",{timestamp:new Date,query:t.query,params:t.params,duration:Number(t.duration_ms),target:t.module_path}):dm(t)?this.loggerRustPanic=new ue(Ji(this,`${t.message}: ${t.reason} in ${t.file}:${t.line}:${t.column}`),this.config.clientVersion):this.logEmitter.emit(t.level,{timestamp:new Date,message:t.message,target:t.module_path})}}parseInitError(r){try{return JSON.parse(r)}catch{}return r}parseRequestError(r){try{return JSON.parse(r)}catch{}return r}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return Re(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let r=async()=>{Re("library starting");try{let t={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(t)),this.libraryStarted=!0,Re("library started")}catch(t){let n=this.parseInitError(t.message);throw typeof n=="string"?t:new S(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.config.tracingHelper.runInChildSpan("connect",r),this.libraryStartingPromise}async stop(){if(await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return Re("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted)return;let r=async()=>{await new Promise(n=>setTimeout(n,5)),Re("library stopping");let t={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(t)),this.libraryStarted=!1,this.libraryStoppingPromise=void 0,Re("library stopped")};return this.libraryStoppingPromise=this.config.tracingHelper.runInChildSpan("disconnect",r),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(r){return this.library?.debugPanic(r)}async request(r,{traceparent:t,interactiveTransaction:n}){Re(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:t}),o=JSON.stringify(r);try{await this.start(),this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let s=this.parseEngineResponse(await this.executingQueryPromise);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new j(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:s,elapsed:0}}catch(s){if(s instanceof S)throw s;if(s.code==="GenericFailure"&&s.message?.startsWith("PANIC:"))throw new ue(Ji(this,s.message),this.config.clientVersion);let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new j(`${a.message} PrismaClientInitializationError: Server has closed the connection. at r (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:113:2493) at async Proxy.onModuleInit (/app/dist/prisma/prisma.service.js:14:9) at async Promise.all (index 0) at async callModuleInitHook (/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_refl_ogqsyr4bbcztohkf54i7ykqyhm/node_modules/@nestjs/core/hooks/on-module-init.hook.js:43:5) at async NestApplication.callInitHook (/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_refl_ogqsyr4bbcztohkf54i7ykqyhm/node_modules/@nestjs/core/nest-application-context.js:223:13) at async NestApplication.init (/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_refl_ogqsyr4bbcztohkf54i7ykqyhm/node_modules/@nestjs/core/nest-application.js:100:9) at async NestApplication.listen (/app/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_refl_ogqsyr4bbcztohkf54i7ykqyhm/node_modules/@nestjs/core/nest-application.js:169:33) at async bootstrap (/app/dist/main.js:32:5) { clientVersion: '5.10.1', errorCode: 'P1017' } Node.js v20.14.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Container logs:
The text was updated successfully, but these errors were encountered: