I know there have been posts about this issue before but reading them I am still unable to find a solution. The weird part about this is my app has been working fine for weeks and then I reset my server and I keep getting this error.
I am using Waitress to serve an app that deals with webhooks.
@app.route(f'/outbound', methods=["POST"])
def outbound():
data = request.json.get('data')
to_ = data.get('payload').get('to')
The issue is in the line to_ = data.get('payload').get('to')
This exact code has been processing my webhooks for weeks, I can't understand why it just now started throwing this error.