RestClient Behind Firewall

279 views Asked by At

Whenever the rails application tries to upload an image to cloudinary which is deployed in On-premise servers is throwing TimeOut errors.

I, [2016-12-21T14:55:24.617319 #923] INFO -- : Completed 500 Internal Server Error in 60101ms (ActiveRecord: 49.7ms) F, [2016-12-21T14:55:24.627524 #923] FATAL -- : RestClient::Exceptions::OpenTimeout (Timed out connecting to server):

Any ideas?

1

There are 1 answers

2
Karthik On

I have used the below option to set the proxy url for the rest_url which fixed the issue.

RestClient.proxy ="ProxyURL"