-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown error when navigating #167
Comments
This happens when you navigate too fast 🙈 |
Oops, the app missed to remove the failed objects from the fail list when they were fetched successful. This doesn't fix the root cause of issue #167, but should mitigate it.
This seems to be the problem: |
Thanks, that fix made the "Try Again" button work. 😊 I tried to debug the issue this morning, too, and I might have found a solution. However, this required some bigger changes in the My approachFirst, I changed the HTTP call from
This error told me, what happened to the running tasks when navigating quickly: Something is wrong with the memory management of this class. I'll push my code in a new branch later, so you can have a look at my potential solution. |
Yo dawg, I heard you like tasks. So I put a task around your task, so the task is a separate task that won't get cancelled when task gets cancelled. I hope this fixes issue #167 without too much changes in the API. The other solution would maybe be to add task ids: @State private var taskId: UUID = .init() .task(id: taskId) {
In many cases (like 70-90%), where I navigate inside the app, I get this error-message:
When I tap "try again", the text vanished, but I still can't navigate.
According to the logs, the data requests fail with errorcode -999 (cancelled).
Video:
https://github.com/supergeorg/Grocy-SwiftUI/assets/2721240/c71345e0-6b00-4c0e-9e9d-6f0f7bc8bff9
The text was updated successfully, but these errors were encountered: