Cant use mailgun Api

i cant use mailgun api , code works fine in my pc, but not here. here is the error - Fatal error : Uncaught Buzz\Exception\NetworkException: file_get_contents( failed to open stream: operation failed in /home/vol2_6/ Stack trace: #0 /home/vol2_6/ Buzz\Client\FileGetContents->sendRequest(Object(Nyholm\Psr7\Request)) #1 /home/vol2_6/ Http\Client\Common\EmulatedHttpAsyncClient->sendRequest(Object(Nyholm\Psr7\Request)) #2 /home/vol2_6/ Http\Client\Common\PluginClient->Http\Client\Common{closure}(Object(Nyholm\Psr7\Request)) #3 /home/vol2_6/ in /home/vol2_6/ on line 28

Most likely its the recent issue, caused by an OpenSSL Upgrade. Try replacing the file_get_contents with this:

$opts = stream_context_create(array('ssl' => array('verify_peer'=>false,'verify_peer_name'=>false)));

$result = file_get_contents('', false, $opts);

This is a good temporary solution, if that’s what the problem is, but in the long run, its not good for security. The Admin has said that they are looking into a way to fix this problem.


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.