stable-horde-flutter icon indicating copy to clipboard operation
stable-horde-flutter copied to clipboard

Exception: "Waiting Prompt with ID 'ab1bb368-101d-4dd1-acbc-4eab0fa121aa' not found."

Open sentry[bot] opened this issue 2 years ago • 2 comments

Sentry Issue: STABLE-HORDE-MOBILE-C

_Exception: Exception: Failed to get task status: 404 {"message": "Waiting Prompt with ID 'ab1bb368-101d-4dd1-acbc-4eab0fa121aa' not found."}

  File "tasks_bloc.dart", line 181, in _TasksBloc._retrieveTaskResult
  File "tasks_bloc.dart", line 251, in _TasksBloc._waitOnTask

sentry[bot] avatar Jan 27 '23 02:01 sentry[bot]

This probably happens when a user requests an image, leaves the app, comes back a few hours later (after the stable horde backend has expired the image).

To fix this, I think we can either:

  • Have the app request the image in the background.
  • Have our own simple backend that requests the image and persists it.

(I would prefer the second option since it would be more robust, but it's more work).

ndahlquist avatar Jan 27 '23 03:01 ndahlquist

I think we should punt on this for the time being, since it's a big architectural change. Let's focus on the easier issues, and revisit this once other stuff is more stable.

ndahlquist avatar Jan 27 '23 03:01 ndahlquist