App stuck on "Please wait..." / "App is in the oven"

My app is stuck on “Please wait…” / “App is in the oven”

App link:

Strangely, it is actually almost a duplicate (just changing language) from the following app, which is working fine:

Before this issue (of app being stuck) the app crashed due to a connection issue. I rebooted the app and it didn’t work, then I tried deleting the app and creating it from scratch again (and now stuck on “app is in the oven”). The app was working normally during two days and was receiving a fair amount of requests (10-20 an hour).

Link to repo:

Can you assist? Thank you very much!

I managed to work around the problem by copying the code into a different script

The app works fine! However, why the first script doesn’t work is still a mystery