Title: Webhook problem: 403 Request forbidden · Issue #412 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: Webhook problem: 403 Request forbidden · Issue #412 · python-telegram-bot/python-telegram-bot
X Title: Webhook problem: 403 Request forbidden · Issue #412 · python-telegram-bot/python-telegram-bot
Description: Steps to reproduce Enable webhook like this: #added to show the full picture inside this function #certificate = '/path/to/cert1.pem' #full_chain = '/path/to/fullchain1.pem' #key = '/path/to/privkey1.pem' updater = Updater(TOKEN) updater...
Open Graph Description: Steps to reproduce Enable webhook like this: #added to show the full picture inside this function #certificate = '/path/to/cert1.pem' #full_chain = '/path/to/fullchain1.pem' #key = '/path/to/privke...
X Description: Steps to reproduce Enable webhook like this: #added to show the full picture inside this function #certificate = '/path/to/cert1.pem' #full_chain = '/path/to/fullchain1.pem' #key = ...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/412
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Webhook problem: 403 Request forbidden","articleBody":"\u003c!--\nThanks for reporting issues of python-telegram-bot!\nTo make it easier for us to help you please enter detailed information below.\n\nPlease note, we only support the latest version of python-telegram-bot and\nmaster branch. Please make sure to upgrade \u0026 recreate the issue on the latest\nversion prior to opening an issue.\n--\u003e\n### Steps to reproduce\n1. Enable webhook like this:\n\n``` python\n #added to show the full picture inside this function\n #certificate = '/path/to/cert1.pem'\n #full_chain = '/path/to/fullchain1.pem'\n #key = '/path/to/privkey1.pem'\n\n updater = Updater(TOKEN)\n updater.start_webhook(listen='0.0.0.0',\n port=8443,\n url_path=TOKEN,\n key=key,\n cert=full_chain,\n webhook_url='https://eugenick.xyz:8443/' + TOKEN)\n updater.bot.setWebhook(url='https://eugenick.xyz:8443/' + TOKEN)\n\n dp = updater.dispatcher\n\n # on different commands - answer in Telegram\n dp.add_handler(CommandHandler(\"start\", start))\n dp.add_handler(CommandHandler(\"help\", help))\n\n # on noncommand i.e message - echo the message on Telegram\n dp.add_handler(MessageHandler([Filters.text], echo1))\n\n # log all errors\n dp.add_error_handler(error)\n\n updater.idle()\n```\n1. Making fake request via console:\n\n```\ncurl --tlsv1 -v -k -X POST -H \"Content-Type: application/json\" -H \"Cache-Control: no-cache\" -d '{\n\u003e \"update_id\":10000,\n\u003e \"message\":{\n\u003e \"date\":1441645532,\n\u003e \"chat\":{\n\u003e \"last_name\":\"Test Lastname\",\n\u003e \"id\":1111111,\n\u003e \"first_name\":\"Test\",\n\u003e \"username\":\"Test\"\n\u003e },\n\u003e \"message_id\":1365,\n\u003e \"from\":{\n\u003e \"last_name\":\"Test Lastname\",\n\u003e \"id\":1111111,\n\u003e \"first_name\":\"Test\",\n\u003e \"username\":\"Test\"\n\u003e },\n\u003e \"text\":\"/start\"\n\u003e }\n\u003e }' \"https://eugenick.xyz:8443/TOKEN\"\n```\n1. Got next response in console:\n\n\n### Expected behaviour\n\nI am expecting to see 200 OK or something similar \n### Actual behaviour\n\nI got 403 Request Forbidden \n### Configuration\n\nNo LSB modules are available.\nDistributor ID: Ubuntu\nDescription: Ubuntu 16.04.1 LTS\nRelease: 16.04\nCodename: xenial\n\n**Version of Python, python-telegram-bot \u0026 dependencies:**\npython-telegram-bot 5.0.0\nurllib3 1.17\ncertifi 2016.08.31\nfuture 0.15.2\nPython 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609]\n### Logs\n\n```\n2016-09-15 20:01:07,642 - JobQueue - DEBUG - Auto-starting JobQueue\n2016-09-15 20:01:07,642 - JobQueue - DEBUG - JobQueue thread started \n2016-09-15 20:01:07,644 - telegram.ext.updater - DEBUG - dispatcher - started\n2016-09-15 20:01:07,644 - telegram.ext.dispatcher - DEBUG - Dispatcher started\n2016-09-15 20:01:07,645 - telegram.bot - DEBUG - Entering: setWebhook\n2016-09-15 20:01:07,646 - telegram.ext.updater - DEBUG - updater - started\n2016-09-15 20:01:07,646 - telegram.ext.updater - DEBUG - Updater thread started\n2016-09-15 20:01:07,678 - telegram.bot - DEBUG - Entering: setWebhook\n2016-09-15 20:01:07,705 - telegram.bot - DEBUG - True\n2016-09-15 20:01:07,705 - telegram.bot - DEBUG - Exiting: setWebhook\n2016-09-15 20:01:07,728 - telegram.bot - DEBUG - True\n2016-09-15 20:01:07,729 - telegram.bot - DEBUG - Exiting: setWebhook\n2016-09-15 20:01:07,729 - telegram.utils.webhookhandler - DEBUG - Webhook Server started.\n2016-09-15 20:09:40,645 - telegram.utils.webhookhandler - DEBUG - 94.45.109.127 - - \"GET /TOKEN HTTP/1.1\" 200 -\n2016-09-15 20:19:32,794 - telegram.utils.webhookhandler - DEBUG - Webhook triggered\n2016-09-15 20:19:32,795 - telegram.utils.webhookhandler - DEBUG - 94.45.109.127 - - code 403, message Forbidden\n2016-09-15 20:19:32,796 - telegram.utils.webhookhandler - DEBUG - 94.45.109.127 - - \"POST /TOKEN HTTP/1.1\" 403 -\n2016-09-15 20:23:02,756 - telegram.utils.webhookhandler - DEBUG - Webhook triggered\n2016-09-15 20:23:02,758 - telegram.utils.webhookhandler - DEBUG - 94.45.109.127 - - code 403, message Forbidden\n2016-09-15 20:23:02,759 - telegram.utils.webhookhandler - DEBUG - 94.45.109.127 - - \"POST /TOKEN HTTP/1.1\" 403 -\n2016-09-15 20:23:21,094 - telegram.utils.webhookhandler - DEBUG - Webhook triggered\n2016-09-15 20:23:21,096 - telegram.utils.webhookhandler - DEBUG - 94.45.109.127 - - code 403, message Forbidden\n2016-09-15 20:23:21,096 - telegram.utils.webhookhandler - DEBUG - 94.45.109.127 - - \"POST /TOKEN HTTP/1.1\" 403 -\n2016-09-15 20:25:17,167 - telegram.utils.webhookhandler - DEBUG - Webhook triggered\n2016-09-15 20:25:17,168 - telegram.utils.webhookhandler - DEBUG - 45.63.99.236.vultr.com - - code 403, message Forbidden\n2016-09-15 20:25:17,170 - telegram.utils.webhookhandler - DEBUG - 45.63.99.236.vultr.com - - \"POST /TOKEN HTTP/1.1\" 403 -\n2016-09-15 20:25:32,335 - telegram.utils.webhookhandler - DEBUG - Webhook triggered\n2016-09-15 20:25:32,335 - telegram.utils.webhookhandler - DEBUG - 45.63.99.236.vultr.com - - code 403, message Forbidden\n2016-09-15 20:25:32,336 - telegram.utils.webhookhandler - DEBUG - 45.63.99.236.vultr.com - - \"POST /TOKEN HTTP/1.1\" 403 -\n```\n","author":{"url":"https://github.com/evasyuk","@type":"Person","name":"evasyuk"},"datePublished":"2016-09-15T20:54:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/412/python-telegram-bot/issues/412"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e905ad52-a319-13ab-9517-1f7195e39b21 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9A0:EB239:1AE7517:220531E:69918088 |
| html-safe-nonce | cc3eb434bb0703a99b5cc428f911d95cd3778eb4b59b9741e3e553892ad4d448 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUEwOkVCMjM5OjFBRTc1MTc6MjIwNTMxRTo2OTkxODA4OCIsInZpc2l0b3JfaWQiOiI5MDY5MjQyMjQ5NTM2MTc2MjY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 02a4b5d5cf811cd344b1234f0f46677e07dc75d0b49139b96a3ac61f1332558c |
| hovercard-subject-tag | issue:177287336 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-telegram-bot/python-telegram-bot/412/issue_layout |
| twitter:image | https://opengraph.githubassets.com/884909c25cb14184c76d14eab175f72d3b27c61be114afaba2b262e740524b10/python-telegram-bot/python-telegram-bot/issues/412 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/884909c25cb14184c76d14eab175f72d3b27c61be114afaba2b262e740524b10/python-telegram-bot/python-telegram-bot/issues/412 |
| og:image:alt | Steps to reproduce Enable webhook like this: #added to show the full picture inside this function #certificate = '/path/to/cert1.pem' #full_chain = '/path/to/fullchain1.pem' #key = '/path/to/privke... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | evasyuk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width