Internet connection error for all scriptable scripts regarding internet

I have 2 scripts that grab text from a website. One is a widget and the other returns it to an Apple Shortcut that I made. I used to run the shortcut every day and and had the widget on my Home Screen, but now whether I’m connected to the internet or not, it gives me the error: The network connection was lost.

What went wrong? Please help me.

Idk what happened but it works now