'Deploying Heroku c# api

I using heroku cli to deploy my api but i receve this log erro:

2022-03-14T04:38:57.090037+00:00 app[web.1]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) 2022-03-14T04:38:57.090037+00:00 app[web.1]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) 2022-03-14T04:38:57.090038+00:00 app[web.1]: at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host) 2022-03-14T04:38:57.090077+00:00 app[web.1]: at WebApplicationSearchGitHub.Program.Main(String[] args) in /src/Program.cs:line 17 2022-03-14T04:38:57.275430+00:00 heroku[web.1]: Process exited with status 134 2022-03-14T04:38:57.341442+00:00 heroku[web.1]: State changed from starting to crashed 2022-03-14T04:40:33.796390+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-api-to-github-consult.herokuapp.com request_id=8e861b16-36f5-4b1f-b0d4-31602c7c2c94 fwd="179.67.129.0" dyno= connect= service= status=503 bytes= protocol=https 2022-03-14T04:40:34.264385+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-api-to-github-consult.herokuapp.com request_id=d18d4cab-823b-4ac7-b3be-0cc96d81d73c fwd="179.67.129.0" dyno= connect= service= status=503 bytes= protocol=https 2022-03-14T04:47:35.550815+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-api-to-github-consult.herokuapp.com request_id=824151e9-4cea-46d9-bcf0-b793bbba2542 fwd="179.67.129.0" dyno= connect= service= status=503 bytes= protocol=https 2022-03-14T04:47:36.018429+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-api-to-github-consult.herokuapp.com request_id=1a42f55e-b2a4-4c5b-81ca-8c8df5398c0b fwd="179.67.129.0" dyno= connect= service= status=503 bytes= protocol=https 2022-03-14T05:04:48.579060+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-api-to-github-consult.herokuapp.com request_id=22b38091-495e-48a2-9d5d-d96b684a7883 fwd="179.67.129.0" dyno= connect= service= status=503 bytes= protocol=https 2022-03-14T05:04:49.019481+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-api-to-github-consult.herokuapp.com request_id=ad3ac8fd-10bd-494f-84ed-97b15a371c18 fwd="179.67.129.0" dyno= connect= service= status=503 bytes= protocol=https

How I fix this problem ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source