mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
issue: Bug when refreshing tokens with oauth #6468
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Clement44Ges on GitHub (Sep 22, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
V0.6.30
Ollama Version (if applicable)
No response
Operating System
Linux
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
My Open WebUI configuration uses an OAuth connection. I would like a token refresh to be triggered when the minimum timeout is exceeded.
Actual Behavior
When the _refresh_token method is triggered, an error is thrown:
2025-09-22 14:43:36.605 | ERROR | open_webui.functions:generate_function_chat_completion:350 - Error: Result <coroutine object OAuthManager._refresh_token at 0x7f7a8ebb6540>
Steps to Reproduce
Logs & Screenshots
Additional Information
In the utils/oauth.py file at line 189, when you run the function refreshed_token = self._refresh_token(session) there is no await even though the target function is async.
@tjbck commented on GitHub (Sep 22, 2025):
This has been addressed in dev.