Force cURL to use ipv4 for Dns resolving#35
Conversation
I had an issue today trying rollbar for the first time. After a few debugs i realised that curl_exec returned false. curl_error returned it "cannot resolve host". After a few searches i managed to make it works by adding that curl option that forces it to resolve hostname into an IPV4 address. I tested it on a vagrant VM using virtualBox on Windows 8.1 My VM : Ubuntu server 14.04, PHP 5.5.14, cUrl 7.35.0
|
Interesting, I've never had to forcefully set |
|
hi there. On Mon, Jul 21, 2014 at 10:18 PM, Brian Rue [email protected]
|
|
@elfif sounds great, we'll wait for your update. |
|
@brianr @nodesocket, hi guys, i made a few more tests and so far the issue is still here. I tried from my office and had the same result. I tried to change my dns (tried google ones and those of my DSL provider) as it is an ip resolving issue and it goes the same way..... Do you know if RollBar has upgraded his network to ipv6 ? I will try on production condition this afternoon .... |
|
Hi there, I can't reproduce on real servers; i tested with 2 and each time Rollbar works fine ..... i use cURL with other libraries to connect to some oAuth providers on the same project, and it works fine in any case. So it might come from my VM but she's really standard, it s just an up to date Ubuntu Server 14.04 . Thanks guys |
|
Thanks @elfif! Merged and released as version 0.9.7 |
|
This definitely should not have been accepted 😂 |
I had an issue today trying rollbar for the first time. After a few debugs i realised that curl_exec returned false.
curl_error returned it "cannot resolve host". After a few searches i managed to make it works by adding that curl option that forces it to resolve hostname into an IPV4 address.
I tested it on a vagrant VM using virtualBox on Windows 8.1
My VM : Ubuntu server 14.04, PHP 5.5.14, cUrl 7.35.0