microsoft / microsoft/node-api-dotnet
Trying to run NodeWorkers from an ASP.NET Core application
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 783
- Fork
- 80
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I've taken the code that's in NodejsEmbeddingTest.cs in the WorkerMessages and tried to get it to run in both a console and ASP.NET Core application, but it fails saying that a stream has been closed.
Specifically, it fails in RuntimeConfigureCallbackAdapter after the callback has been completed successfully and NodeEmbeddingStatus.OK is being returned. It just fails with no exception. Disabling Just my code revealed no other errors and nothing specifically crashed that I could find.
I do not have this issue when running the same exact code in the unit tests. Any ideas on what needs to be set up to enable this?
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia confrontando il codice NodejsEmbeddingTest.cs in WorkerMessages con la sua esecuzione nella console e nelle applicazioni ASP.NET Core, concentrandoti sull'errore stream-closed in RuntimeConfigureCallbackAdapter dopo NodeEmbeddingStatus.OK. Riproduci il problema al di fuori dei test unitari e identifica la differenza di configurazione necessaria affinché il callback venga completato senza chiudere lo stream.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, node.js
- Ambito
- backend
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100