Hello! We are noticing an issue from one of our servers that is blocking API requests we make to OnePage.
Here is an example request we make to refresh the token. We get back a false
response from your service, but only from one server it fails to return anything. (I've removed the client ID and secret in the example below.)
Is there any sort of IP whitelisting that OnePage uses to restrict API requests from certain IP's? We believe our server is being blocked for some reason.
curl_setopt($ch, CURLOPT_URL, 'https://app.onepagecrm.com/api/v3/oauth/refresh_token');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('refresh_token' => '83cfcf7d-9fef-49b6-9329-4b98c729154d', 'client_id' => 'CLIENT_ID', 'client_secret' => 'CLIENT_SECRET', 'grant_type' => 'refresh_token'));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(0 => 'Expect:'));
$rval = curl_exec($ch);
curl_close($ch);
var_export($rval);
Hi Matt,
We do sometimes block IPs when we detect excessive API use or a DOS attack. Could you email me (liam@onepagecrm.com) the ip address of your server, and I'll review our list. When did you notice the outage, and how many requests would you be making on average per hour?
Kind regards,
Liam
Thank you Liam! I am composing an email now that I will send to you shortly with more details.