79243194

Date: 2024-12-02 07:06:41
Score: 2
Natty:
Report link
@app.route('/task/create',methods=["post"])
def create_task():
    print(request.data)
    return "error"

You are doing it wrong u have not accessed request.data

u should use data = request.get_json() or request.get_data()

enter image description here

then simply use print(data) to see data

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: priyanshu de1