$latestHttpResponse/Content = null Error

0
I'm trying to access a method in an API using the CALL REST action in Mendix. I can access the API with the same link in my local, PostMan, and test environment without any problems, and I receive a 200 OK message. However, I'm receiving an error in the production environment. When I look at the logs, I see that I'm receiving a 200 OK, but I'm still receiving an error.   The response I get from the following code: Log Code: 200, Reason: OK, Content: null   I'm using error handling and I use the following:   if $latestHttpResponse != empty and $latestHttpResponse/StatusCode = 200 then 'Log Code: ' + toString($latestHttpResponse/StatusCode) + ', Reason: ' + $latestHttpResponse/ReasonPhrase + ', Content: ' + $latestHttpResponse/Content else 'REST Error- ' + (if $latestHttpResponse != empty then 'Code: ' + toString($latestHttpResponse/StatusCode) + ', Reason: ' + $latestHttpResponse/ReasonPhrase + ', Content: ' + $latestHttpResponse/Content else 'No HTTP response received.' ) + (if $latestError != empty then 'Exception: ' + $latestError/Message else '' )   Am I getting an error while importing? Why do I get an error in production environment, even though I use the same JSON structure in both the local and test environments, but I don't get an error? Also, why do I get an error even though a 200 OK message is returned? What does "$latestHttpResponse/Content: null" mean? Is that the source of the error?
asked
0 answers