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

Hi,

I have a WordPress website, using Contact Form 7 to collect leads. I also want to use API to create leads in Odoo automatically when someone submits forms on the website. 

I find the below Plugin:

https://github.com/Jack-Dane/odoo-wp-plugin

#ISSUE#

After I set up the odoo connection, and the test always fails.

Test Result: Failure

Error Message: Connect error: Connection refused (111)

Error Code: 5


My Odoo URL works well. Does anyone know how to fix this?

Thank you!

 

Ảnh đại diện
Huỷ bỏ

Hi Frank,
Did you tested through postman? to simply fetch/GET from your url.

Could you check any of these could be the reasons?

1. The destination resource is rejecting the connection
2. A firewall is blocking the connection
3. There is a routing issue
4. No process is listening on the IP:Port combination that the client is trying to connect to
5. The connection attempt was dropped while being routed to the resource

Câu trả lời hay nhất

Hi Frank,

As we have discussed together.

These are the potential issues if somebody encounters the same issue

  1. The destination resource is rejecting the connection
  2. A firewall is blocking the connection
  3. There is a routing issue
  4. No process is listening on the IP:Port combination that the client is trying to connect to
  5. The connection attempt was dropped while being routed to the resource

And in your case it's number 4 where the port is not included in the outbound.

Hope this helps, upvote and mark it as solved if possible.

Thanks!

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

Hi Andry,

Thanks for your help. 

I tested through postman. GET to my URL works well. I also use POST to create a lead in my odoo. It works well. 

So could it be the plugin has a problem?

Ảnh đại diện
Huỷ bỏ

I afraid so, could you check the console network when you click send or something that trigger the api?

Tác giả

Hi Andry,

Thanks for your suggestion. After several hours of testing, finally I found the problem:
The outbound cURL requests to port 8069 of my WordPress hosting server are blocked. I contacted them to open it. Now it works.

Regarding the plugin:
WP Odoo Form Integrator works well for me, although its last update is 8 years ago :)

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 25
601
1
thg 11 24
1367
1
thg 3 16
3110
0
thg 7 25
275
2
thg 7 25
1155