locked
Failed to request controller in ASP.NET Core MVC and Angular frontend RRS feed

  • Question

  • User1153394952 posted

    I have a problem. When sending this request, my controller returns the following message:
    System.Net.Http.HttpRequestException: Failed to proxy the request to http: // api / product / insert, because the request to the proxy target failed. Check that the proxy target server is running and accepting requests to http: // localhost: 50005 /.
    I tried doing the inclusion in Startup.cs: spa.UseProxyToSpaDevelopmentServer ("http // localhost: 50005 /");
    But it didn't solve

    Saturday, February 27, 2021 12:55 PM

All replies

  • User475983607 posted

    I Googled the error message and this was the first Item returned.

    https://github.com/asadsahi/AspNetCoreSpa/issues/200

    Saturday, February 27, 2021 1:15 PM
  • User1153394952 posted

    By default, it initially looked like this: spa.UseAngularCliServer (npmScript: "start"); And it didn't work.

    Saturday, February 27, 2021 1:24 PM
  • User475983607 posted

    viniciusmatos

    By default, it initially looked like this: spa.UseAngularCliServer (npmScript: "start"); And it didn't work.

    What does "didn't work" mean?  Did you receive a different error? The same error? Are you using a proxy like fiddler on port 50005?   Can you explain how your development environment is configured?  

    Have you tried Googling the error?

    https://github.com/jasontaylordev/NorthwindTraders/issues/21

    Saturday, February 27, 2021 1:53 PM
  • User1153394952 posted

    What does "didn't work" mean?  Did you receive a different error? The same error? Are you using a proxy like fiddler on port 50005?   Can you explain how your development environment is configured?  

    Have you tried Googling the error?

    https://github.com/jasontaylordev/NorthwindTraders/issues/21


    It means that you guided, I had tried before but it didn't work. The same error continues to return. Yes, I already searched on google. I've been trying to find a solution for a few days.

    Saturday, February 27, 2021 2:05 PM