Hello
I enable forwarding for event and positions both. Here is my code
<entry key='forward.url'>https://xyz.com/api/traccarwebhook</entry>
<entry key='forward.type'>json</entry>
<entry key="event.forward.type">json</entry>
<entry key='event.forward.url'>https://xyz.com/api/traccarwebhook</entry>
And here it works it is calling the webhook but it is sending empty data
2024-03-14 09:26:41,978 2669745 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:26:41,980 2669745 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:26:41] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.004 0.018
2024-03-14 09:26:46,541 2669733 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:26:46,543 2669733 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:26:46] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.003 0.011
2024-03-14 09:26:46,549 2669741 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:26:46,550 2669741 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:26:46] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.005 0.010
2024-03-14 09:26:49,190 2669745 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:26:49,191 2669745 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:26:49] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.003 0.010
2024-03-14 09:26:53,126 2669747 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:26:53,129 2669747 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:26:53] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.004 0.017
2024-03-14 09:26:53,450 2669737 INFO shamiate werkzeug: 127.0.0.1 - - [14/Mar/2024 09:26:53] "POST /web/dataset/call_kw/fleet.vehicle/search_read HTTP/1.0" 200 - 9 0.008 0.018
2024-03-14 09:26:58,920 2669732 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:26:58,921 2669732 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:26:58] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.004 0.010
2024-03-14 09:26:59,153 2669747 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:26:59,156 2669747 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:26:59] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.003 0.012
2024-03-14 09:27:04,880 2669743 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:27:04,882 2669743 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:27:04] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.003 0.014
2024-03-14 09:27:09,178 2669745 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:27:09,180 2669745 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:27:09] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.004 0.013
2024-03-14 09:27:11,217 2669745 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:27:11,220 2669745 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:27:11] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.004 0.013
2024-03-14 09:27:15,859 2669739 INFO Saas odoo.addons.traccar_main_junction.controllers.traccar_webhook: =-=-=data-->{}
2024-03-14 09:27:15,861 2669739 INFO Saas werkzeug: 127.0.0.1 - - [14/Mar/2024 09:27:15] "POST /api/traccarwebhook HTTP/1.0" 200 - 2 0.003 0.012
Can you help me? What i did wrong?
Try using only the following key
<entry key='server.forward'>192.168.0.111</entry>
replace the ip with that of the server receiving the data
2024-03-14 11:20:44 WARN: Network forwarding error - Connection refused - ConnectException (... < NetworkForwarder:56 < NetworkForwarderHandler:60 < ...)
This error is coming
I think you should open port 5055
I am not 100% sure about the port, I would have to check my configuration.
root@vmi1513540:~# ufw status
Status: active
To Action From
-- ------ ----
5055/tcp ALLOW Anywhere
8069/tcp ALLOW Anywhere
8072/tcp ALLOW Anywhere
53/tcp ALLOW Anywhere
5432/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
22/tcp ALLOW Anywhere
5055/tcp (v6) ALLOW Anywhere (v6)
8069/tcp (v6) ALLOW Anywhere (v6)
8072/tcp (v6) ALLOW Anywhere (v6)
53/tcp (v6) ALLOW Anywhere (v6)
5432/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
This is enabled
What Cristian suggested is not the same type of forwarding. Make sure you check the documentation to understand what each parameter does.
As for your original webhook forwarding, it will never send empty body, so I suspect you have some issues on the receiving end.
Thank you @anton tananaev
You are right and i fund the solution from documentation now it is working.
Thank you
@Mayur,
I'm facing the same
<entry key='forward.enable'>true</entry>
<entry key='forward.url'>https://apps.example.com/test/abc/v1/api/xyz/bcd</entry>
<entry key='forward.json'>true</entry>
<entry key='event.forward.enable'>true</entry>A
<entry key='event.forward.header'>Authorization: Basic eXaMpLe</entry>
did I miss something?
Hello
I enable forwarding for event and positions both. Here is my code
<entry key='forward.url'>https://xyz.com/api/traccarwebhook</entry> <entry key='forward.type'>json</entry> <entry key="event.forward.type">json</entry> <entry key='event.forward.url'>https://xyz.com/api/traccarwebhook</entry>
And here it works it is calling the webhook but it is sending empty data
Can you help me? What i did wrong?