Azure function proxy returns error 500

时光毁灭记忆、已成空白 提交于 2021-01-29 03:51:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!