Server code exited

Hello there
first let me congratulate Anvil team for the incedibile and unexpected full functionality of the web IDE even on a smartphone screen.
I currently cannot access a PC and was forced to use my cellphone for some troubleshooting and yes, it was a little tricky, but evetything worked smooth, and I really didn’t expect that.
So thumbs up!

Now to the problem.

Today starting at 13 until 17 one of my app suffered coninuous errors of this kind:

Now, the referenced line is a 1-line call:

And also the called function is very very simple:

@anvil.server.callable
def notify():
  anvil.http.request(url = "https://notification-receiver-app.anvil.app/_/api/notify/my-secret-api-key-dbea3e9d417c")

Any idea of what the cause of the error could be?
I’ve already an email thread with Anvil support on my apps consuming too much memory but I can’t see how this call chain, that really sums to a single HTTP GET, can be problematic and cause this errors stripe:


I can move it to the client code but I dont like the api key to be exposed on the client.

Thanks for helping

Is it possible that this was the problem?

2 Likes

Looks the same problem indeed, and the fix times match with the last errors in my log being at 17-18 and your fix being at 18 (don’t know the timezone), and me non replicating the error at 21:50 CEST.
Strange I couldn’t find the post in Bugs when I searched before posting, Sorry for that.
I’ll keep this monitored.

Thanks @stefano.menci and all Anvil staff.

1 Like

Just an FYI, issues like this that are system errors on the hosting side of Anvil don’t always go into the Bug Reports, they also might just live in the Q&A section (as this one was)

Hi,

I am witnessing the same problem right now (11:32am BST on 01/08/2025)

anvil.server.ExecutionTerminatedError: Server code exited unexpectedly: db5bd7cc62

  • at Login, line 19

It worked about 30 mins ago, and doesn’t know. I have made no changes

Is anyone else having issues?

Cheers
Boz

This is now sorted, thanks very much to Ian for his help.