TypeError Ajax Post - Flask Python
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Life in a Drop
--
Chapters
00:00 Question
01:33 Accepted answer (Score 0)
01:56 Thank you
--
Full question
https://stackoverflow.com/questions/2236...
Accepted answer links:
http://flask.pocoo.org/docs/api/#flask.j...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#javascript #python #html #flask
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Life in a Drop
--
Chapters
00:00 Question
01:33 Accepted answer (Score 0)
01:56 Thank you
--
Full question
https://stackoverflow.com/questions/2236...
Accepted answer links:
http://flask.pocoo.org/docs/api/#flask.j...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#javascript #python #html #flask
#avk47
ACCEPTED ANSWER
Score 0
Try returning:
return jsonify(result=result)
Check out the docs: http://flask.pocoo.org/docs/api/#flask.json.jsonify.
I suspect create_user() is returning a bool type which has no dictionary representation.