[FIXED] Background task failure not showing in log

I have an app where a background task has failed but, in the App logs, instead of any debugging information, I just get:

Your app has no recorded sessions yet. Console output and errors will be recorded here.
Refresh to view new sessions.

Refreshing has no effect.

Any ideas what might be going on here?

1 Like

I have had the same issue for a few days as well

Hi @owen.campbell ,

Thanks for reporting this.

Could I get the ID of your app and permission to view your code?

You will find your App ID in the URL while editing your app: https://anvil.works/build#app:<APP_ID>

To help us debug, how did you know the background task failed? If you had an error elsewhere, caused by the background task failing, where was it?

Finally, could we get the ID of the background task concerned?

Thanks,
Ryan

Thanks @ryan. I’ve sent that info via PM.

Great, thanks @owen.campbell

I’ve confirmed with @owen.campbell via PM that this was a bug and we have now released a fix.

Please let us know if you see further issues!

2 Likes

Has this problem been resolved? I’m having exactly the same problem. I’m trying to load a huggingface model, so I think it needs to download this, but the server is timing out and when I use the background tasks it gives me the same error as above.