The Python Oracle

TypeError Ajax Post - Flask Python

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Civilization

--

Chapters
00:00 Typeerror Ajax Post - Flask Python
01:12 Accepted Answer Score 0
01:28 Thank you

--

Full question
https://stackoverflow.com/questions/2236...

--

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.