Not sure if this is it, but you have whitespace before the https:// - is that just a formatting error due to the forum?
Jan 21, 2022
5
Level 2
cURL error 3
Hi Guys I am trying to make GET request but for some reason I am getting this annoying cURL error cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
Any idea what I am doing wrong ?
This is my code :
public function fetch() {
$response = Http::get(' https://api.getAddress.io/find/tw134gt ', [
'apiKey' => 'my api key',
'limit' => 10,
]);
$address = json_decode($response->body());
return $address;
}
Level 15
In the dashboard, there are two keys, the admin key and the API key, make sure you are using the API key, and if it does not work, generate a new one and try that.
As a side note, I didn't realize limit was an acceptable query parameter, but I might be wrong. It's just not listed on the documentation.
Please or to participate in this conversation.