0

I have an azure function which is supposed to call an on-prem API. The application works fine in my dev environment. But there is a problem when I deployed it to Azure. I have already set up a hybrid connection for my Azure function to connect to the on-prem server. But when I run the code to get a response from on-prem API I get a 204 error. I believe there is a problem with the connection to on-prem from Azure. Could you review my setting and advice if anything is wrong? My Code:
var request = new RestRequest("**https://onPremServer.internal.myDomain.com:534**/api/token", Method.Post); enter image description here

enter image description here enter image description here

Helen
  • 31
  • 1

1 Answers1

0

204 status code its not an Error. its successfully request and response. 200-206 status code its show successfully. and 204 status code show its not content return by the API. Its Api return content. You can change content from API Side.

The 204 (No Content) status code indicates that the server has successfully fulfilled the request and that there is no additional content to send in the response payload body.

204 status No Content by Apihandyman site.

Azure Functions Using Hybrid Connections by stefanroth.

Mohit Ganorkar
  • 1,917
  • 2
  • 6
  • 11