강의

멘토링

커뮤니티

Inflearn Community Q&A

windguy19995381's profile image
windguy19995381

asked

How to Create a Bitcoin Cryptocurrency Auto Trading Coin Bot Part 1 - Learning Risk-Free Strategies

리눅스 서버에서 오류 발생합니다.

Written on

·

686

0

자체 서버 (ubuntu 22.04) 에 올려서 실행하니까 아래 처럼 오류가 발생되네요

라이브러리 모두 설치한것 같은데...

답변 부탁드립니다.

 

Traceback (most recent call last):

File "upbit_volatility_breakout_bot.py", line 273, in <module>

if each_asset['currency'] == ticker:

TypeError: string indices must be integers

 

투자투자

Answer 1

0

windguy19995381님의 프로필 이미지
windguy19995381
Questioner

get_balance()  함수 찍어 보니까 아래처럼 데이터를 못받아 오네요..

{'error': {'name': 'jwt_decode', 'message': 'Failed to decode Jwt.'}}

 

AISchool님의 프로필 이미지
AISchool
Instructor

안녕하세요~. 반갑습니다.

먼저 수강에 불편을 드려서 죄송합니다.

해당 에러 메세지는 JWT 해석에 실패해서 발생한 것으로 예상됩니다.

https://flyingsquirrel.tistory.com/57

위 글을 참고해서 jwt_token 코드 뒷부분에 .decode('utf8') 을 추가해보시겠어요?

좋은 하루되세요~.

감사합니다.

 

windguy19995381님의 프로필 이미지
windguy19995381
Questioner

알려주신 코드로 수정하시깐 잘 돌아가네요.

감사합니다.

windguy19995381's profile image
windguy19995381

asked

Ask a question