Exception: Timeout waiting for invokeMethod clientStorage:get({'key': 'USERNAME'}) call #3132
-
Exception: Timeout waiting for invokeMethod clientStorage:get({'key': 'USERNAME'}) call hi, i have an issue here since i have updated to class ChatUI(ft.SafeArea):
def __init__(self, window: ft.Page) -> None:
super().__init__()
self.window: ft.Page = window
self.username: str = (
"User"
if not self.window.client_storage.get("USERNAME")
else self.window.client_storage.get("USERNAME")
) and i get this error
i get no errors when using Operating System: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Try to call If that doesn't help, please provide complete runnable repro. |
Beta Was this translation helpful? Give feedback.
-
Still same error |
Beta Was this translation helpful? Give feedback.
If you are making a custom control inherited from existing Flet control then there is no need to pass
Page
instance into its constructor. You should be able to access page asself.page
inside that control.Also, I see you use some 3rd-party library
flet_easy
. The problem could be there - I don't know about that library. Maybe you can do a smaller repro with that library and your control.