Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7627 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 21
11064
1
thg 11 16
5383
0
thg 4 24
1778
1
thg 1 24
3076
4
thg 11 23
5832