flask-jwt icon indicating copy to clipboard operation
flask-jwt copied to clipboard

Unhelpful error when JWT_SECRET_KEY is not set.

Open exhuma opened this issue 9 years ago • 7 comments

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.

exhuma avatar Nov 26 '15 12:11 exhuma

+1, saved my day...

Josscii avatar May 04 '17 12:05 Josscii

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

chadwalt avatar Aug 11 '17 11:08 chadwalt

Legend.

tommy-trombone avatar Apr 03 '18 11:04 tommy-trombone

+1, Thanks for this post.

a-soliman avatar May 25 '18 18:05 a-soliman

Thanks alot @exhuma this worked for me

klevamane avatar Oct 20 '18 15:10 klevamane

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

raymonterola avatar Sep 20 '21 09:09 raymonterola

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

mahdihaghverdi avatar Sep 09 '23 12:09 mahdihaghverdi