matthiasnoback / microsoft-translator

PHP library for making calls to the Microsoft Translator V3 API
MIT License
39 stars 26 forks source link

file_get_contents - failed to open stream #16

Closed raivisdejus closed 8 years ago

raivisdejus commented 8 years ago

Hi,

I get the following error on one of my servers. It is shared hosting. Everything is fine on my local dev server.

Fatal error: Uncaught exception 'Buzz\Exception\RequestException' with message 'file_get_contents(https://datamarket.accesscontrol.windows.net/v2/OAuth2-13): failed to open stream: operation failed' in /home/site/public_html/vendor/kriswallsmith/buzz/lib/Buzz/Client/FileGetContents.php:28

allow_url_fopen is enabled

Any ideas?

matthiasnoback commented 8 years ago

This has been answered in various older issues ;) In short; nothing I can do about this. Just switch to Curl.

raivisdejus commented 8 years ago

Thanks, I found the necessary in one of the older issues.