Open dredgy opened 2 years ago
Would anybody have any clue? It’s starting to get annoying!
Were you able to resolve this issue?
took that route out of the router, and then it just started calling my next getf routes, even though I'm not going to anything that should trigger those routes, so generating an exception no matter what as it's passing null to all my functions.
When running in debug (.NET 6, F# 6) I always get an exception with one of my controller functions because it's trying to open a file but null is being passed into the function as an argument so I'm getting a NullReferenceException (or something along those lines), which I'm very much not used to in F#.
So I took that route out of the router, and then it just started calling my next getf routes, even though I'm not going to anything that should trigger those routes, so generating an exception no matter what as it's passing null to all my functions.
The full stacktrace is here, seems to be with
TryDummy
In case I'm doing something wrong, my router is:
And the first function that gets called (in this case language is set to null and causes a file not found issue)
Is this like a config issue, a bug, am I coding it wrong? I will fix my GetFileContents function to check if the file exists first, but if I delete getKeyboardLayout, it moves onto getFloorplanData.
This ONLY happens when running in the debugger, everything works perfectly when running normally.