Open ZuSe opened 3 years ago
Some additional information. I were able to reproduce it on local. What matters is the RTT to the database, when using my local PSQL it took me close to a thousand requests to run into it. Using a cloud-db with longer RTT (approx 200ms) it only took me 5-10 tries.
i run uwsgi with multiple workers,still have this problem
Problem is still exists.
Describe the bug Token Creation with grant_type password leads sometimes to "AccessToken matching query does not exist." error
To Reproduce
Expected behavior No exception should be thrown, every client should return the token back.
Version OAuth-Toolkit: 1.5.0 Django: 3.2.5 Uvicorn: 0.14.0 Gunicorn: 20.1.0
Additional context Here is the call stack from sentry.:
My call looks like that:
I can only guess right now, but I think we run here into a problem with Django's move towards ASGI and the asynchronous nature of it.