Error 500 on a POST request from a static web app to a web service

LUPO DANIELE 1 Reputation point
2023-01-03T22:16:53.003+00:00

Hi community,
I have a problem with a POST request sent to my Azure app service from a static web app. The front end is written in Vue.js, the back end in Python.
When I send this request, the response is an Internal Server Error(error 500). In the app log I can see there's a HttpRequestException.
Have you got any ideas on how to solve?
N.B. The app works well in local environment.
275790-1.png275738-2.png275767-3.png

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,172 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LUPO DANIELE 1 Reputation point
    2023-01-04T11:47:58.527+00:00

    I've tried to do what you suggest but still no results. In the portal the following is the only thing that appears
    276030-4.png

    EDIT: I solved the problem by customizing the startup commands of gunicorn. The app was not correctly binded


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.