Conversation
|
Hi @FGBxRamel, I can't reproduce your error and in my case it also works with tokens. There are other similar accesses in the code that are structured like this and don't cause any problems. With a little experimentation I was able to produce the same error, like:
With that typo "passwrd" it would run into that error. However, this occurs when the model tries to access a non-existent collection. It should be assumed that the database is running, and if not, then the error there is ok too. If the database is running, even a missing field should only trigger an "undefined". Maybe I'm missing something here or you can tell me exactly how you did it so that I could also get these errors? |
|
Hey @MaRcR11 . I will write a more detailed answer and try reinstalling everything asap, but this roughly is what I did:
Maybe it's worth noting that I did disable my Cache, but that shouldn't be a problem? Like mentioned above, I'm gonna write something more in-depth asap. Besides that I'll try reinstalling everything (again), maybe I just missed something important. |
|
So @MaRcR11 Should I make a separate issue for that? |
Hello again!
I tried to make a fix which I encountered during the attempt to set it up on my own.
Error
When first logging in, everything works. The problem comes when you want to come back (logging in with token). Following error occurs (full path replaced with "."):
Proposed fix
My proposed fix with this PR is to check whether or not the Model is null. I created a helper variable to check instead of the Model.