Auth0 on Google Cloud VM causing error 500

I am using the auth0 ‘get/user’ API to return a list of registered users in C#. This functionality works well in my Angular-C# app which I have deployed on IIS in an on-prem server, however the same functionality fails for the same app deployed on a Google Cloud VM, where I receive an error: “Http failure response for https://mydomain.com/user: 500 OK” .
I have 2 separate tenants for my on-prem and cloud environments, and I noticed that for the get users action, the on-prem tenant log shows 3 logs (‘successful silent authentication’, ‘authorization code for access token’ and ‘client credentials for access token’) however the same action on the cloud vm log shows only 2 logs (‘successful silent authentication’ and ‘authorization code for access token’).