Skip to Content
Menu
This question has been flagged
1 Reply
6741 Views

I Created a Odoo API using XML-RPC by Ripcord to Connect my Odoo site with my PHP site,

in Localhost , it worked fine, but when i used it in Live Server (http://gtptc.com/odoo_api/impact_api.php)

it Returns Error,


Error Message:

Notice: Undefined variable: http_response_header in /home/gtptc/public_html/odoo_api/ripcord/ripcord_client.php on line 485
Fatal error: Uncaught Ripcord_TransportException: Could not access http://158.140.133.95:8069/xmlrpc/2/common in /home/gtptc/public_html/odoo_api/ripcord/ripcord_client.php:488 Stack trace: #0 /home/gtptc/public_html/odoo_api/ripcord/ripcord_client.php(228): Ripcord_Transport_Stream->post('http://158.140....', '<?xml version="...') #1 /home/gtptc/public_html/odoo_api/impact_api.php(30): Ripcord_Client->__call('authenticate', Array) #2 {main} thrown in /home/gtptc/public_html/odoo_api/ripcord/ripcord_client.php on line 488

Please Help me to Solve this error

Thank you


Avatar
Discard
Author Best Answer

Finally, I found the Problem Reason Myself from different Sources

Problem is Shared Host Sites, Not Allow to access sites with Port No Other than :80

So, need to check with Hosting Team of PHP site to allow to access Port :8069

Reference Link :

https://stackoverflow.com/questions/46826311/failed-to-connect-to-port-8080-connection-refused-error-number-7-curl

No issue with Odoo Site

Avatar
Discard
Related Posts Replies Views Activity
1
Feb 21
9135
1
Nov 16
4386
0
Apr 24
397
1
Jan 24
1178
4
Nov 23
4244