Estefania Hernandez
Estefania Hernandez

Reputation: 268

Where can I see logs or details for error Azure "An error has occurred." for an API call on Azure?

I have an ASP.NET API and works great as local and using Postman.

Then I decided to publish to Azure since I tried on other free host SOMEE and never worked.

Principal API page on Azure works fine but when I tried to call a controller shows the error

{"Message":"An error has occurred."}

and I don't even know where to check more details about this error.

I tried the same on a Somee.com host and same thing happens

Upvotes: 2

Views: 1124

Answers (1)

invernomuto
invernomuto

Reputation: 10221

Azure portal offer to you some resources to investigate your issue

  • Log stream (in your App Service page, under Monitoring section), can give you some info of you api call. enter image description here
  • Advanced Tools (in your App Service page, under Development Tools), can give you more information of your app settings, deployment info, wwwroot folder, etc... enter image description here

It can be a deployment issue(related to the app service configuration, maybe you are using a docker container?) or a simple error in your connection string, so review your app service settings: enter image description here

it's usually one of these(some) problems.

all the best

Upvotes: 2

Related Questions