Heroku PlugCowboy error

Hi, I’m getting this error on trying to deploy my app to heroku… cant figure out what it is, anyone have a sugestion?

2019-09-15T01:15:55.301760+00:00 heroku[web.1]: Starting process with command `mix run --no-halt`
2019-09-15T01:15:57.490282+00:00 app[web.1]:
2019-09-15T01:15:57.490318+00:00 app[web.1]: 01:15:57.490 [info]  Application cda_search exited: CdaSearch.Application.start(:normal, []) returned an error: shutdown: failed to start child: {:ranch_listener_sup, CdaSearch.Api.Entry.HTTP}
2019-09-15T01:15:57.490321+00:00 app[web.1]: ** (EXIT) shutdown: failed to start child: :ranch_acceptors_sup
2019-09-15T01:15:57.490324+00:00 app[web.1]: ** (EXIT) :badarg
2019-09-15T01:15:57.491477+00:00 app[web.1]: ** (Mix) Could not start application cda_search: CdaSearch.Application.start(:normal, []) returned an error: shutdown: failed to start child: {:ranch_listener_sup, CdaSearch.Api.Entry.HTTP}
2019-09-15T01:15:57.491481+00:00 app[web.1]: ** (EXIT) shutdown: failed to start child: :ranch_acceptors_sup
2019-09-15T01:15:57.491483+00:00 app[web.1]: ** (EXIT) :badarg

Probably some issue with your configuration.

Can you please show us the config of your Endpoint?

Hi, I figutre it out. In the config/prod.exs I was parsing the PORT to integer but somehow at start it was still getting a String, I switched things and now I parse the PORT to integer inside the function and everything works, thanks!