Closed RobWiddick closed 8 years ago
I believe I have successfully implemented a resolution to this.
For some reason, when using the API heavily (such as during loops), the connection likes to fail: either by timing out or "connection refused". I have no idea why - and Instagram isn't offering any help.
I have also reordered the way that the headers are handled post-execution, so that the returned data is checked before parsed (such as before the processHeaders
method). I've introduced a second exception to help developers track down issues easier, albeit ever so slightly... at least we'll know that the connection failed (for whatever reason) X times instead of just giving up once.
Error: _makeCall() - cURL error: Failed to connect to api.instagram.com port 443: Connection timed out
Does anyone know why this could be happening? The first few requests work, then it times out..