에러노트
검색결과
2
개


[에러노트] AttributeError: 'str' object has no attribute 'decode'
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 할게 없으므로 에러 발생하는것
에러노트
2022. 7. 12. 19:26