mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
issue: OAuth token after some time missing in tool calls #6478
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 @koflerm on GitHub (Sep 23, 2025).
Check Existing Issues
Installation Method
Other
Open WebUI Version
v0.6.30
Ollama Version (if applicable)
No response
Operating System
Red Hat CoreOS (Kubernetes Cluster Installation)
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The oauth token should be always provided by the new tool call parameter
__oauth_token__. If the token is expired, the token should either be refreshed or the user should be logged out.Actual Behavior
We are using the following code in a test tool to print the OAuth token, provided via a parameter in the new Open WebUI version:
However, after the user is logged in for some time, this parameter is no longer set. I get then the following error:
'NoneType' object is not subscriptableSo it seems after some time the session for the user is lost, but the user is then not automatically logged out or the token is not refreshed.
Any idea what could be wrong here?
Steps to Reproduce
Import the following tool in your Open WebUI instance:
After direct login, the variable will be set.
If you try to re-execute the tool after some hours, the parameter will no longer be set (NoneType)
Logs & Screenshots
When querying the logs, I found at a different point in time (not when using the described tool) the following log messages:
When a user is performing a login, the following logs are written:
Additional Information
No response
@tjbck commented on GitHub (Sep 23, 2025):
This has been addressed in dev, please check for duplicate issues.
@koflerm commented on GitHub (Oct 6, 2025):
All right sorry oversaw this one thanks for the fast response as always!