-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core dump #32
Comments
Hi @pschuegr, sorry for the late response! easy = Ethon::Easy.new
easy.http_request("www.example.com", :post, { params: { a: 1 }, body: { b: 2 } })
easy.perform Also you are mentioning typhoeus - which is a related project but not the same: https://github.com/typhoeus/typhoeus. |
Thanks @i0rek. I found the example in the spec and everything is working fine. I don't think it should be core dumping, though, or is that part of the way it binds to libcurl? |
@pschuegr actually it is possible to catch that here: https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/options.rb#L284. Do you want to take a stab at it? |
Sure, I can have a go. Should I just catch a general exception, or is there a more specific one? |
You could validate the input and raise an ArgumentError. |
I'm getting a core dump with a really simple request using ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]. I'm sure this is not a typhoeus (edit: sorry, I meant Ethon) problem, but you may have some ideas? It started as soon as I added the httppost.
The text was updated successfully, but these errors were encountered: