Ankur Pohekar
Ankur Pohekar

Reputation: 139

Faraday::ConnectionFailed (connection refused: :80)

I have created REST API in ruby on rails and for api calling I have used Faraday as a REST client. my application is working totally fine on localhost:3000.

but when I deployed it to heroku it giving me an error

Faraday::ConnectionFailed (connection refused: :80)

Upvotes: 0

Views: 3013

Answers (2)

debasish117
debasish117

Reputation: 196

There should be a .env file in your project which will be holding the port number . You need to configure it and point it to the port where heroku is using .

Upvotes: 0

Pragash
Pragash

Reputation: 743

May be you should try on port 443.

Upvotes: 0

Related Questions