1

The ...dynamics.com/api/data/v9.0/contacts endpoint and all other /api endpoints in our on-site Microsoft Dynamics virtual machines returns 500 errors.

I do not think it is an authorization issue. In the Azure portal I've registered an app and am using the client/app id which was also put into Dynamics as Admin. I'm able to get an OAuth token, no problem. The app has full AD and Dynamics admin permissions that are granted in Azure.

Whenever I try any of the /api endpoints the IIS web server just returns a 500. I can see the 500 error in the IIS log but it is non-descriptive. Just shows the standard IIS log record with IP address and status code.

I have also looked at the Event Viewer in which I see nothing at all. I do not see anything in the Windows logs -> Application list for a corroborating date and time stamp.

What would at least help is if I can just get some detail on the error I'm getting. But I don't know where to look. I'm guessing it is some error being thrown in the API code call.

I've tried using Postman and a PHP library but both are getting the 500 errors. I don't think it is my end.

Shawn Welch
  • 531
  • 2
  • 4
  • 18
  • In IIS log files, what is the sub status code of such 500 errors? – Lex Li Sep 20 '18 at 20:40
  • @LexLi I don't know how to see that. This is the IIS entry: `2018-09-20 20:54:32 10.1.31.48 GET /api/data/v9.0/accounts $select=name&$top=3 443 - 10.1.3.19 GuzzleHttp/6.3.3+curl/7.58.0+PHP/7.2.9-1+ubuntu18.04.1+deb.sury.org+1 - 500 0 1001 125` – Shawn Welch Sep 20 '18 at 20:55
  • 500.0 is web app internal error. No other logs but Dynamics itself can answer what's up. Open a support case via http://support.microsoft.com if you don't know what to check. – Lex Li Sep 20 '18 at 21:05
  • @LexLi I've combed over the Dynamics logs in Event Viewer and I'm not seeing anything. So just call MS support? I'm thinking there must be a config issue. – Shawn Welch Sep 20 '18 at 21:15
  • @shawn-welch did you ever fix this? I am facing the same issue and would be really thankful! – strangfeld Nov 04 '20 at 21:45

0 Answers0