问题
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?
回答1:
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.
回答2:
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
来源:https://stackoverflow.com/questions/43064946/azure-function-proxy-returns-error-500