Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong webhook URL (double slash) with RP #402

Closed
nioc opened this issue Feb 6, 2025 · 1 comment
Closed

Wrong webhook URL (double slash) with RP #402

nioc opened this issue Feb 6, 2025 · 1 comment

Comments

@nioc
Copy link

nioc commented Feb 6, 2025

Hello,

I have the following webhook config:

Image

I redacted the real url/path of course 😉

But in the log I saw:

[telegram bot] Webhook enabled: {"url":"https://sub.myhost//path/wh/telegram/1943XXX","has_custom_certificate":false,"pending_update_count":0,"max_connections":40,"ip_address":"XX.XX.XX.XXX"}

Also redacted the token and IP.

And so, Telegram sends me webhook on this url (with double slash between host and path) which was not the wanted one (https://sub.myhost/path/wh/telegram/1943XXX)

I had to add a new HAProxy acl:

    acl acl_webhook_telegram path_beg //path/wh/telegram/

This behavior is quite new, I think it was introduced in 16.1.1 or 16.1.2

@windkh
Copy link
Owner

windkh commented Feb 6, 2025

@nioc thanks for reporting... this is obviously not the intention... I will fix it asap

@windkh windkh closed this as completed in 9bd6d1a Feb 8, 2025
windkh pushed a commit that referenced this issue Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants