Can't figure out what this error means Net::OpenTimeout: execution expired
It is simply a timeout error. It occurs when the third party server take time to respond.
Solution
- First move method in the background job.
- add some delay in making next request. The delay depends on how much capable or limit you have to make a call in per sec to the third party server.
sleep 5
is works in most of the case. - If possible, make a
batch
request.