Powered by Blogger.

Welcome id7004e with info

AttributeError: 'str' object has no attribute 'decode' 에러 해결 방법

0 comments


jwt_token = jwt.encode(payload, secret_key).decode('utf-8') 오류난걸

jwt_token = jwt.encode(payload, secret_key) #.decode('utf-8') 주석처리함
해결답: jwt_token = jwt.encode(payload, secret_key)

이미 디코딩. 당신은str, 더 이상 UTF-8에서 디코딩 할 필요가 없습니다.


pip install h5py==2.10.0

 pip install h5py==2.10.0 --force-reinstall




댓글 없음:

댓글 쓰기

Blogger 설정 댓글

Popular Posts

Welcome id7004e with info

ondery

내 블로그 목록

가장 많이 본 글

기여자