Logic Apps ADT Connector returns 502 Bad Gateway while trying to update twin's property

Vaibhav Lonkar 20 Reputation points
2023-05-16T19:40:33.7366667+00:00

Hello,

While trying to update the property of a twin from Logic Apps, using ADT Connector, I keep getting 502 and Bad Gateway error. Complete message is below.

{
"error": {
"code": 502,
"message": "The remote name could not be resolved: 'https'",
"source": "logic-apis-uksouth.azure-apim.net",
"path": "forward-request",
"policyId": "",
"clientRequestId": "<<removed>>"
}
}

Any help appreciated!

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
219 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,845 questions
{count} votes

Accepted answer
  1. LeelaRajeshSayana-MSFT 13,456 Reputation points
    2023-05-16T22:40:03.9933333+00:00

    Hi @Vaibhav Lonkar Greetings! Welcome to Microsoft Q&A forum. Thank you for posting the question here. We would glad to assist you with the request.

    To update Azure Digital Twins using Azure Digital Twin Connector in Logic Apps, you would need to provide a JSON patch in the request parameter. Please find the below Request details I have set to the Update Twin method to perform a patch update.

    enter image description here

    Once I have the Json Patch set in the request, running the Logic App using the trigger would result in a successful update. Please find the below response from the method after the logic app is run.

    enter image description here

    If you still see the same, please confirm if you are able to perform any other Tasks with ADT connector such as fetching Digital Twin or Creating a Digital Twin. Please note that there is known limitation with Azure Digital Twin connector where we need to explicitly parse the JSON to the model before consuming it. Please let us know if you are trying to parse any data or provide input to the Update Twin method through a variable which might be causing this issue.


    If the response helped, please do click Accept Answer and Yes. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful