跳至内容
菜单
此问题已终结
1 回复
7650 查看

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


形象
丢弃
编写者 最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
2月 21
11094
1
11月 16
5413
0
4月 24
1810
1
1月 24
3106
4
11月 23
5845