espresso-dev / instagram-basic-display-php

A simple PHP class for accessing the Instagram Basic Display API
MIT License
112 stars 23 forks source link

Timeout error within Social Feed Drupal module #16

Open MzudemD opened 3 years ago

MzudemD commented 3 years ago

Hello everyone,

I'm not able to find out where in my setup this error lies, so I'm finally trying here.

I am using the Social Feed module for Drupal, which uses espresso-dev/instagram-basic-display-php. In my local environment, everything seems to work fine, but as soon as I bring that module to my dev environment, the following error occurs in the logs:

EspressoDev\InstagramBasicDisplay\InstagramBasicDisplayException: Error: _makeCall() - cURL error: Connection timed out after 20000 milliseconds in EspressoDev\InstagramBasicDisplay\InstagramBasicDisplay->_makeCall() (Zeile 300 in /var/www/drupal/vendor/espresso-dev/instagram-basic-display-php/src/InstagramBasicDisplay.php).

Have you got any suggestions or clue, how to get this working? I couldn't work anything out in Drupal or the module, so maybe you guys are able to help out.

hermanschutte commented 3 years ago

@MzudemD Are you still experiencing this issue?

MzudemD commented 3 years ago

@hermanschutte I am, but a colleague is off the opinion that this might be due to a faulty php configuration. He was not able to verify or falsify that yet, I will keep this issue updated on that.

I'm still open to any hits that could lead to the solution.

zieddams commented 2 years ago

hello developers , any news for this problem ?

hermanschutte commented 2 years ago

@zieddams are you able to replicate this bug consistently? It is a timeout, so would be caused by slow API response from Instagram.

sunlix commented 2 years ago

Hey together,

I am also a new user to the socialfeed module on Drupal. In my company network setup there is a proxy my client cant connect through.

I think the library have to support to optionally set a proxy connection. Due to my research on PHP cURL, the proxy server have to setup for every single cURL handle? Our system proxy on a staging system does not apply to the cURL handle initiated at https://github.com/espresso-dev/instagram-basic-display-php/blob/e15ac322fd5ee3b8469bcb3e16c90667b8f2e208/src/InstagramBasicDisplay.php#L288-L295

Or am I wrong with anything belongs to setting up proxy correctly?