You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #212 you have asked me, when these unhandledRejection errors occur. Here are two instances:
[nitro] [dev] [unhandledRejection] Error: TypeInfo not known for "Query$2"
at InternalDependencyContainer.construct (/workspace/JabRefOnline/node_modules/tsyringe/dist/cjs/dependency-container.js:263:23)
at InternalDependencyContainer.resolve (/workspace/JabRefOnline/node_modules/tsyringe/dist/cjs/dependency-container.js:105:33)
at resolvers$2 (file:///workspace/JabRefOnline/.nuxt/dev/index.mjs:596:22)
at loadResolvers (file:///workspace/JabRefOnline/.nuxt/dev/index.mjs:971:5)
at loadSchema (file:///workspace/JabRefOnline/.nuxt/dev/index.mjs:985:21)
at file:///workspace/JabRefOnline/.nuxt/dev/index.mjs:1094:13
ERROR [unhandledRejection] Cannot set headers after they are sent to the client
at new NodeError (node:internal/errors:371:5)
at ServerResponse.setHeader (node:_http_outgoing:576:11)
at sendError (node_modules/h3/dist/index.mjs:216:13)
at nodeHandler (node_modules/h3/dist/index.mjs:375:15)
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Hi @tobiasdiez, and thanks for not forgetting about that and sharing when it happens!
Well, actually the issue is in your implementation. You should never leave a promise unsupervised. In this case, you could do configureTsyringe().then(() => { ... }).catch(error => { console.error('Error while executing configureTsyringe', error) })
Unrelated: Why would you need overhead of all express and HTTP server to start an apollo server? It wouldn't even work without Node.js and I think there is a lighter version for apollo...
exportdefaultdefineLazyEventHandler(async()=>{// Do all async stuff on first API call // H3 await first on thisawaitconfigureTsyringe()constserver= ...
returndefineHandler(server)})
I'm closing issue since is not directly related to Nitro. But feel free to ping me here or in Discord if could be of any further help.
Environment
rc3
Reproduction
n/a
Describe the bug
In #212 you have asked me, when these unhandledRejection errors occur. Here are two instances:
where the last line refers to https://github.com/JabRef/JabRefOnline/blob/8ebc92fc768c193ec00cdba7da8e8779b6635ac6/server/api/%5B...%5D.ts#L32
and
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: