pallets-eco / flask-jwt

JWT (JSON Web Tokens) for Flask applications
MIT License
564 stars 177 forks source link

Unhelpful error when JWT_SECRET_KEY is not set. #66

Open exhuma opened 9 years ago

exhuma commented 9 years ago

If no secret key is set (that is, None), the following error is reported:

TypeError: Expecting a string- or bytes-formatted key.

A more helpful message would be nice.

Josscii commented 7 years ago

+1, saved my day...

chadwalt commented 7 years ago

Wow after googling around with no luck, and I land on this post. Thank you, saved my day.

tommy-trombone commented 6 years ago

Legend.

a-soliman commented 6 years ago

+1, Thanks for this post.

klevamane commented 6 years ago

Thanks alot @exhuma this worked for me

raymonterola commented 3 years ago

This really saved me. I've been debugging a test application that keeps showing this error for hours. Thanks.

mahdihaghverdi commented 1 year ago

After 2 or 3 hours of debugging, found this issue. Thanks :)