Error while webhook setting

Error while setting webhook

File “”, line 20, in
def webhook():
File “C:\Users\Lepsy\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\”, line 1315, in decorator
self.add_url_rule(rule, endpoint, f, **options)

“C:\Users\Lepsy\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\”, line 98, in wrapper_func
return f(self, *args, **kwargs)

“C:\Users\Lepsy\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\”, line 1275, in add_url_rule
rule = self.url_rule_class(rule, methods=methods, **options)
TypeError: init() got an unexpected keyword argument ‘method’

Hey @lgoyal50_be19, I would request you to please remove the parameter method which you are passing to function call. Then try !

I hope this clears your doubt !
Please mark the doubt as resolved in your doubts section ! :slightly_smiling_face:
Happy Learning !

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.