Infos:
- Used Zammad version: 5.2.x
- Used Zammad installation type: package
- Operating system: Ubuntu 20.04
- Browser + version: Chrome
- Database : Postgresql 12.11
- Web server : nginx 1.18.0
Expected behavior:
- Telegram Bot to be added successfully
Actual behavior:
- Error “The webhook could not be saved by Telegram, seems to be an invalid URL.” is shown and the bot is not added
Https configured via nginx proxy pass
Steps to reproduce the behavior:
add new bots (tried about 5 pieces). Manually added webhook . Requests get into the zammad logs, but naturally they are not processed, since the bots are not added to the system. The problem appeared a month ago. The old bots worked until I removed them.
*
LOGS zammad
E, [2022-08-01T10:49:32.620234 #1468134-133060] ERROR – : The webhook could not be saved by Telegram, seems to be an invalid URL. (Exceptions::UnprocessableEntity)
app/controllers/channels_telegram_controller.rb:24:in rescue in add' app/controllers/channels_telegram_controller.rb:21:in
add’
app/controllers/application_controller/has_download.rb:21:in block (4 levels) in <module:HasDownload>' app/controllers/application_controller/has_download.rb:20:in
block (3 levels) in module:HasDownload’
app/controllers/application_controller/has_download.rb:19:in block (2 levels) in <module:HasDownload>' app/controllers/application_controller/handles_transitions.rb:16:in
handle_transaction’
I, [2022-08-01T10:49:32.621678 #1468134-133060] INFO – : Completed 422 Unprocessable Entity in 273ms (Views: 0.2ms | ActiveRecord: 4.3ms | Allocations: 8351)
I, [2022-08-01T10:49:33.578202 #1468134-128240] INFO – : Started POST “/api/v1/channels_telegram” for 10.0.3.67 at 2022-08-01 10:49:33 +0000
I, [2022-08-01T10:49:33.585191 #1468134-128240] INFO – : Processing by ChannelsTelegramController#add as JSON
I, [2022-08-01T10:49:33.585280 #1468134-128240] INFO – : Parameters: {“api_token”=>“5541950547:AAGVJbni-zzoFCRR92AyzgUfOTkQNfsf1yU”, “welcome”=>“12345”, “goodbye”=>“123”, “group_id”=>“5”}
E, [2022-08-01T10:49:33.864749 #1468134-128240] ERROR – : The webhook could not be saved by Telegram, seems to be an invalid URL. (Exceptions::UnprocessableEntity)
app/controllers/channels_telegram_controller.rb:24:in rescue in add' app/controllers/channels_telegram_controller.rb:21:in
add’
app/controllers/application_controller/has_download.rb:21:in block (4 levels) in <module:HasDownload>' app/controllers/application_controller/has_download.rb:20:in
block (3 levels) in module:HasDownload’
app/controllers/application_controller/has_download.rb:19:in block (2 levels) in <module:HasDownload>' app/controllers/application_controller/handles_transitions.rb:16:in
handle_transaction’
I, [2022-08-01T10:49:33.866278 #1468134-128240] INFO – : Completed 422 Unprocessable Entity in 281ms (Views: 0.3ms | ActiveRecord: 4.2ms | Allocations: 8321)
I, [2022-08-01T10:49:34.427089 #1468134-130400] INFO – : Started POST “/api/v1/channels_telegram” for 10.0.3.67 at 2022-08-01 10:49:34 +0000
I, [2022-08-01T10:49:34.433530 #1468134-130400] INFO – : Processing by ChannelsTelegramController#add as JSON
I, [2022-08-01T10:49:34.433619 #1468134-130400] INFO – : Parameters: {“api_token”=>“5541950547:AAGVJbni-zzoFCRR92AyzgUfOTkQNfsf1yU”, “welcome”=>“12345”, “goodbye”=>“123”, “group_id”=>“5”}
E, [2022-08-01T10:49:34.695506 #1468134-130400] ERROR – : The webhook could not be saved by Telegram, seems to be an invalid URL. (Exceptions::UnprocessableEntity)
app/controllers/channels_telegram_controller.rb:24:in rescue in add' app/controllers/channels_telegram_controller.rb:21:in
add’
app/controllers/application_controller/has_download.rb:21:in block (4 levels) in <module:HasDownload>' app/controllers/application_controller/has_download.rb:20:in
block (3 levels) in module:HasDownload’
app/controllers/application_controller/has_download.rb:19:in block (2 levels) in <module:HasDownload>' app/controllers/application_controller/handles_transitions.rb:16:in
handle_transaction’
I, [2022-08-01T10:49:34.697425 #1468134-130400] INFO – : Completed 422 Unprocessable Entity in 264ms (Views: 0.2ms | ActiveRecord: 3.9ms | Allocations: 8358)
I, [2022-08-01T10:49:35.226716 #1468134-108920] INFO – : Started POST “/api/v1/channels_telegram” for 10.0.3.67 at 2022-08-01 10:49:35 +0000
I, [2022-08-01T10:49:35.233227 #1468134-108920] INFO – : Processing by ChannelsTelegramController#add as JSON
I, [2022-08-01T10:49:35.233374 #1468134-108920] INFO – : Parameters: {“api_token”=>“5541950547:AAGVJbni-zzoFCRR92AyzgUfOTkQNfsf1yU”, “welcome”=>“12345”, “goodbye”=>“123”, “group_id”=>“5”}
E, [2022-08-01T10:49:35.506133 #1468134-108920] ERROR – : The webhook could not be saved by Telegram, seems to be an invalid URL. (Exceptions::UnprocessableEntity)
app/controllers/channels_telegram_controller.rb:24:in rescue in add' app/controllers/channels_telegram_controller.rb:21:in
add’
app/controllers/application_controller/has_download.rb:21:in block (4 levels) in <module:HasDownload>' app/controllers/application_controller/has_download.rb:20:in
block (3 levels) in module:HasDownload’
app/controllers/application_controller/has_download.rb:19:in block (2 levels) in <module:HasDownload>' app/controllers/application_controller/handles_transitions.rb:16:in
handle_transaction’
I, [2022-08-01T10:49:35.507605 #1468134-108920] INFO – : Completed 422 Unprocessable Entity in 274ms (Views: 0.2ms | ActiveRecord: 3.9ms | Allocations: 8321)
MY SSL curl -Iv https://mydomain
- SSL certificate verify ok.
- Using HTTP2, server supports multi-use
- Connection state changed (HTTP/2 confirmed)
- Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
- Using Stream ID: 1 (easy handle 0x559d780e9b60)
HEAD / HTTP/2
Host: mydomain
user-agent: curl/7.68.0
accept: /
- Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200
HTTP/2 200
< server: nginx
server: nginx
< date: Mon, 01 Aug 2022 11:04:10 GMT
date: Mon, 01 Aug 2022 11:04:10 GMT
< content-type: text/html; charset=utf-8
content-type: text/html; charset=utf-8
< x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
< x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
< x-content-type-options: nosniff
x-content-type-options: nosniff
< x-download-options: noopen
x-download-options: noopen
< x-permitted-cross-domain-policies: none
x-permitted-cross-domain-policies: none
< referrer-policy: strict-origin-when-cross-origin
referrer-policy: strict-origin-when-cross-origin
< link: </assets/application-0dff4740f40f18c3dd3a1a2d278781ee823c40e81140a6a1e817d15d7f7c8041.css>; rel=preload; as=style; nopush,</assets/application-print-ce6db3cee38ec792bd7dd6c766e91bbd7876617c60d96974af9a6db39c8adcbc.css>; rel=preload; as=style; nopush
link: </assets/application-0dff4740f40f18c3dd3a1a2d278781ee823c40e81140a6a1e817d15d7f7c8041.css>; rel=preload; as=style; nopush,</assets/application-print-ce6db3cee38ec792bd7dd6c766e91bbd7876617c60d96974af9a6db39c8adcbc.css>; rel=preload; as=style; nopush
< vary: Accept
vary: Accept
< csrf-token: jCMVV4f1oPAy8Rwis9GCozdtFDEOWb2V9GrgdNqb174EzMgRoRlTZrHaruLcD_VmadU4YZFNKE0rou7Cr-jwGQ
csrf-token: jCMVV4f1oPAy8Rwis9GCozdtFDEOWb2V9GrgdNqb174EzMgRoRlTZrHaruLcD_VmadU4YZFNKE0rou7Cr-jwGQ
< cache-control: no-cache, no-store, max-age=0, must-revalidate
cache-control: no-cache, no-store, max-age=0, must-revalidate
< pragma: no-cache
pragma: no-cache
< expires: -1
expires: -1
< etag: W/“8bf7723f9a5dc1a274df168aef03fac0”
etag: W/“8bf7723f9a5dc1a274df168aef03fac0”
< content-security-policy: base-uri ‘self’ https://mydomain; default-src ‘self’ ws: wss: https://images.zammad.com; font-src ‘self’ data:; img-src * data:; object-src ‘none’; script-src ‘self’ ‘unsafe-eval’ ‘strict-dynamic’ ‘nonce-euh7xXaQjIthSLapSfcrOA==’; style-src ‘self’ ‘unsafe-inline’; frame-src www.youtube.com player.vimeo.com
content-security-policy: base-uri ‘self’ https://mydomain; default-src ‘self’ ws: wss: https://images.zammad.com; font-src ‘self’ data:; img-src * data:; object-src ‘none’; script-src ‘self’ ‘unsafe-eval’ ‘strict-dynamic’ ‘nonce-euh7xXaQjIthSLapSfcrOA==’; style-src ‘self’ ‘unsafe-inline’; frame-src www.youtube.com player.vimeo.com
< set-cookie: _zammad_session_a138cfd0f37=a45ba1951d6525418f2f07313ab19b0a; path=/; secure; HttpOnly; SameSite=Lax
set-cookie: _zammad_session_a138cfd0f37=a45ba1951d6525418f2f07313ab19b0a; path=/; secure; HttpOnly; SameSite=Lax
< x-request-id: 48a2ea68-25a9-4507-a97f-5c0d7e757754
x-request-id: 48a2ea68-25a9-4507-a97f-5c0d7e757754
< x-runtime: 0.029710
x-runtime: 0.029710
< strict-transport-security: max-age=31536000; includeSubdomains
strict-transport-security: max-age=31536000; includeSubdomains
<
- Connection #0 to host mydomain left intact
Test SSL https://www.ssllabs.com/