Works Locally But Not When Uploaded To Domain

If you are using file_get_contents or similar to make HTTP requests that is the issue.
fopen/fgc will be blocked for security reasons on a domain. Since cURL should be used instead.

Depending on your code you might have screamer suppression which prevents fopen/fgc reporting errors. Or just silently fails and doesn’t log for other reasons, (php.ini etc)

https://www.php.net/curl

You should be using cURL
And testing HTTP Response Codes
And JSON decode errors

So in summary you should be using cURL