NullReferenceException in SqlConnection.UseLocally
@smoothdeveloper ci sta già lavorando.
Dal 23/6/2023.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Issue Summary
I've run into a NullReferenceException internal to FSharp.Data.SqlClient.
To Reproduce
I'm not exactly sure of how to reproduce it but it's possibly caused by a timeout or database error.
Error
System.NullReferenceException: Object reference not set to an instance of an object. at
FSharp.Data.SqlClient.Internals.Extensions.SqlConnection.UseLocally(SqlConnection this, FSharpOption`1 privateConnection) at
<StartupCode$FSharp-Data-SqlClient>[email protected](Unit unitVar) at
Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 508
Expected behavior
I would expect to see a database error, not a null reference inside FSharp.Data.SqlClient.
What you can do
- [] I am willing to contribute a PR with a unit test showcasing the issue
- I am willing to test the bug fix before next release
- Lingua principale
- F#
- Stelle
- 206
- Fork
- 66
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi 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.
Altre issue di fsprojects/FSharp.Data.SqlClient
-
Document agentic contribution workflowForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
-
can't use SQL2025 for design timeForse di nuovo libera @smoothdeveloper l’ha presa 72 giorni fa e non c’è nessuna pull request aperta. Aperta
fsprojects/FSharp.Data.SqlClient#484 · 3 commenti · 1 assegnatario ·
-
Requirements going forward?Apertaenhancement question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
fsprojects/FSharp.Data.SqlClient#445 · 9 commenti ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
fsprojects/FSharp.Data.SqlClient#429 · 5 commenti ·
-
question
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
fsprojects/FSharp.Data.SqlClient#427 · 4 commenti ·