How do I catch API Error in case of connection issue?

Hey all,

I know this has been asked on how to catch an error with the API in SC, but I haven’t found anything regarding a connection error.

Currently, this is the setup (I’m getting the users public IP for audit logs in the database):

However, say if I knock out the WiFi on my PC, I get:

I’d rather not, obviously, have this error screen on connection error to the API source, and as I’ve read, TRY/CATCH won’t work for the API module.
image

Does anyone know of a workaround, where, on connection error, it will continue and just give undefined?

Cheers
Michael

Community Page
Last updated: