SzeLee Lai
SzeLee Lai

Reputation: 25

Azure function proxy returns error 500

Currently I am having Azure API app located in UK but I would like to create a Proxy in HK for my users in china to access the servers without much performance impact in connecting the DB server that's allocated in EU.

I just setting up the proxy functionality on Azure function, which is located in East Asia. Unfortunately, I kept getting error code 500 with the api request though postman.

How can I trace the error which is causing error code 500?

Upvotes: 2

Views: 2481

Answers (2)

Omkar More - MSFT
Omkar More - MSFT

Reputation: 296

Adding to Hamid's Answer,

When you add the header "Proxy-Trace-Enabled: true" to the request, you will see a Response Header "Proxy-Trace-Location" giving a link to access the trace log for that request. The link also gives the Trace ID for the particular call.

Upvotes: 5

The trace logs will be in D:\home\LogFiles\Application\Proxies folder.

Also if you need more detailed logs you can add this header to your request:

Proxy-Trace-Enabled: true

And it will create a file under D:\home\LogFiles\Application\Proxies\DetailedTrace folder for each request.

If you can't figure out the cause of 500, please let us know the function app name and the time in UTC and we can investigate.

Thanks

Upvotes: 4

Related Questions