Re: No response from PayPal sandbox server
try this: http://www.sandbox.paypal.com
I believe you forgot the http://
Von: Daniel <danwgrace@gmail.com>
An: cake-php@googlegroups.com
Gesendet: 2:01 Sonntag, 18.November 2012
Betreff: No response from PayPal sandbox server
In my controller I have a PayPal IPN listener which can receive a message from PayPal. However when it tries to communicate back to PayPal with the following command:
$fp = fsockopen('www.sandbox.paypal.com', 443, $errno, $errstr, 30);
... it causes the following error:
2012-11-18 00:44:59 Warning: Warning (2): fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in [/home/f20easy/epdshadow/Controller/SubsController.php, line 271]
Trace:
fsockopen - [internal], line ??
SubsController::process_ipn() - APP/Controller/SubsController.php, line 271
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - ROOT/public_html/index.php, line 100
Trace:
fsockopen - [internal], line ??
SubsController::process_ipn() - APP/Controller/SubsController.php, line 271
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - ROOT/public_html/index.php, line 100
2012-11-18 00:44:59 Warning: Warning (2): fsockopen() [<a href='http://php.net/function.fsockopen'>function.fsockopen</a>]: unable to connect to :443 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in [/home/f20easy/epdshadow/Controller/SubsController.php, line 271]
Trace:
fsockopen - [internal], line ??
SubsController::process_ipn() - APP/Controller/SubsController.php, line 271
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - ROOT/public_html/index.php, line 100
Trace:
fsockopen - [internal], line ??
SubsController::process_ipn() - APP/Controller/SubsController.php, line 271
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - ROOT/public_html/index.php, line 100
It seems as though the address is not correct.
Thanks.
-- Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home