[에러노트] AttributeError: 'str' object has no attribute 'decode'
2022. 7. 12. 19:26
Failed to connet 떠서
일단 localhost로 진행
File "C:\Users\user\Desktop\sparta_plus\week4\app.py", line 95, in api_login
token = jwt.encode(payload, SECRET_KEY, algorithm='HS256').decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'
해당 에러 발생시 .decode('utf-8')를 지우면 해결된다.
decode 할게 없으므로 에러 발생하는것
'에러노트' 카테고리의 다른 글
[에러노트] TemplateNotFound (0) | 2022.07.12 |
---|