An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Forbidden'
I ran into a problem which involves obtaining data from my Azure digital Twin using the python script in Blender. I am currently trying to obtain some temperature value from one of my iot devices and retrieve it in my blender application and get it to show in the software. Thus, what I have here is my ADT_ENDPOINT_URI (my digital twin host name or the Azure digital twin explorer website), then I created an application in App registration for Blender, and got my tenant_ID, Client_ID, and also the client secret value. I set all of the above as my credential for the script to have access. Meanwhile, in the role assignment, I have the following roles: Azure Digital Twin data, Contributor, Owner, and App Configuration Data. Then I ran the script, and the console shows the error message: azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Forbidden'
However, before the error, I also have: INFO:azure.identity._internal.get_token_mixin:ClientSecretCredential.get_token succeeded. Now after this, I have INFO:azure.core.pipeline.policies.http_logging_policy:Response status: 403, which occurred after the message: A body is sent with the request, in which the request headers are as follow: 'Content_type', 'Content- Length', 'Accept':'application/json', request id and user-agent. The Authorization is shown as 'REDACTED'. What could be the cause of this error.
Azure Digital Twins
1 answer
Sort by: Oldest
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
6 deleted comments
Comments have been turned off. Learn more