#6881 (You cannot call this from an async context - use a thread or sync_to_async)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kokkuvõte
The original problem was a simple regression, but let's use this to also extend the testing so that such issues get discovered more early.
Children
Kommentaarid
- 4 kuud ago by Luc Saffre about #6881 (You cannot call this from an async context - use a thread or sync_to_async) : Good that getlino shows such bugs. But it's a pity that it shows them quite late. Maybe an async option for runserver and/or demotest would help to detect such issues earlier.
- 4 kuud ago by Sharif Mehedi about #6881 (You cannot call this from an async context - use a thread or sync_to_async) : It was a regression from my changes. Some database query had to be turned into async context. The issue is gone now.
- 4 kuud ago by Sharif Mehedi about #6881 (You cannot call this from an async context - use a thread or sync_to_async) : I am working on it.
- 4 kuud ago by Luc Saffre about #6881 (You cannot call this from an async context - use a thread or sync_to_async) : Did you already have a look at this? I forgot to ask this morning, but I feel that this is something we should not ignore.
- 4 kuud, 1 nädal ago by Sharif Mehedi about #6881 (You cannot call this from an async context - use a thread or sync_to_async) : I did encountered this. And it usually means, some other exception has occured.
- 4 kuud, 1 nädal ago by Luc Saffre about #6881 (You cannot call this from an async context - use a thread or sync_to_async) : We have this error message in getlino on GitLab. I would like to understand. Let's look at it tomorrow morning.
- 4 kuud, 1 nädal ago by Luc Saffre about #6881 (You cannot call this from an async context - use a thread or sync_to_async) : Created new Ticket #6881 (You cannot call this from an async context - use a thread or sync_to_async).