Originally created by @pekrockstar on GitHub (Dec 30, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8214
The backend will keep outputting errors if the `temporary mode` is enabled, I checked the code and pinpointed it here:
https://github.com/open-webui/open-webui/blob/2299f4843003759290cc6bf823595c6578ee4470/backend/open_webui/utils/middleware.py#L753
Error info:
```shell
message = message_map.get(metadata["message_id"])
^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
```
Code should include a conditional check:
```python
message = message_map.get(metadata["message_id"]) if message_map else None
```
I can confirm there's no error being thrown on the backend regarding usage of the temporary chat feature on the dev branch.
<!-- gh-comment-id:2566108471 -->
@silentoplayz commented on GitHub (Dec 31, 2024):
I can confirm there's no error being thrown on the backend regarding usage of the temporary chat feature on the dev branch.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @pekrockstar on GitHub (Dec 30, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8214
The backend will keep outputting errors if the
temporary modeis enabled, I checked the code and pinpointed it here:https://github.com/open-webui/open-webui/blob/2299f4843003759290cc6bf823595c6578ee4470/backend/open_webui/utils/middleware.py#L753
Error info:
Code should include a conditional check:
@tjbck commented on GitHub (Dec 30, 2024):
Good catch, fixed on dev!
@silentoplayz commented on GitHub (Dec 31, 2024):
I can confirm there's no error being thrown on the backend regarding usage of the temporary chat feature on the dev branch.