How do you pass an option to increase the request timeout? #38
-
I am working with a slow service and and am seeing the default timeout stop my request before it's done. I'd like to increase it to 2 minutes and I've tried a lot of variations of this with and without
I just see NoMethodError errors such as
It seems like I might also be able to pass it before that, but I haven't figured it out how to do it here either:
Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As per the docs, ":timeout" is top-level, and should not be wrapped under ":options" (in fact, there is no ":options". http.post(my_url, json: payload, timeout: { read_timeout: 120 }) |
Beta Was this translation helpful? Give feedback.
As per the docs, ":timeout" is top-level, and should not be wrapped under ":options" (in fact, there is no ":options".