ehrnst / System-Center-Operations-Manager-API

Microsoft System Center Operations Manager (SCOM) Web API
http://adatum.no/operationsmanager/web-api-for-scom
MIT License
41 stars 6 forks source link

"An error has occured" #24

Closed d4rk0de closed 6 years ago

d4rk0de commented 6 years ago

Hi

This looks amazing and I wanted to try it, but I cannot find the reason why I get this error:

Response Body
{
  "Message": "An error has occurred."
}
Response Code
500
Response Headers
{
  "persistent-auth": "true",
  "pragma": "no-cache",
  "date": "Thu, 06 Sep 2018 15:47:46 GMT",
  "server": "Microsoft-IIS/8.5",
  "x-aspnet-version": "4.0.30319",
  "x-powered-by": "ASP.NET",
  "content-type": "application/json; charset=utf-8",
  "cache-control": "no-cache",
  "content-length": "36",
  "expires": "-1"
}

I've set the servers in the web config file, I've added the delegation, the impersonation works because I tried to run the same powershell command without using the default credentials and I get access denied.

Any help would be much appreciated.

Thanks

ehrnst commented 6 years ago

Hi. On what endpoint is this? Have you tried the same endpoint through swagger? Yourapiurl /swagger

Martin On Thu, 6 Sep 2018 at 17:52, cyberf4n notifications@github.com wrote:

Hi

This looks amazing and I wanted to try it, but I cannot find the reason why I get this error:

Response Body { "Message": "An error has occurred." } Response Code 500 Response Headers { "persistent-auth": "true", "pragma": "no-cache", "date": "Thu, 06 Sep 2018 15:47:46 GMT", "server": "Microsoft-IIS/8.5", "x-aspnet-version": "4.0.30319", "x-powered-by": "ASP.NET", "content-type": "application/json; charset=utf-8", "cache-control": "no-cache", "content-length": "36", "expires": "-1" }

I've set the servers in the web config file, I've added the delegation, the impersonation works because I tried to run the same powershell command without using the default credentials and I get access denied.

Any help would be much appreciated.

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ehrnst/System-Center-Operations-Manager-API/issues/24, or mute the thread https://github.com/notifications/unsubscribe-auth/AUXidqUUG14qjUu079wqURcjHCHgnNOtks5uYUTTgaJpZM4WdOoe .

d4rk0de commented 6 years ago

Sorry, ignore for the moment. There were some permissions issues on the account I was logged on I think. Just excited using it :)