Closed Andlibmehndi closed 5 years ago
@Andlibmehndi
there could be multiple reasons for this error:
Thanks
@georged yes, I have done all this thing. Still its giving same error
@Andlibmehndi
I don't have enough information to advise. You need to attach a logger then and capture the details. Instructions are here
Thanks
@georged I have prepared one small demo fo this that why I have not added any loggers but when i debugging it I have found that token is null. is this the token issue?
Thanks.
That'd be authentication issue. For more details you need to look what's coming back from Azure AD. Perhaps secret is not correct but I cannot really tell.
@georged
I have tried with C# code there it is retrieving the data but they are also using Bearer token.
Thanks
@georged Here it's the image which I was getting a response from Azure AD
Thanks
@Andlibmehndi could be various reasons, I can't tell without a log. For example, if a clock on your server is off, you'd get a null token. We are using bearer tokens
@georged Thanks I will try to debug that scenario hope this will work.
Hi, I have connected using the tutorial which mentioned on "dynamics-webapi-toolkit", but there is one error is arriving while executing create/update/delete or retrieve.
the Error is "Exception has occurred. GuzzleHttp\Exception\ClientException: Client error:
GET https://organizationURL/api/data/v9.1/
resulted in a401 Unauthorized
response"my code is as below:
could you please help me with this.