chrislennon/Crypto-Touchbar-App

KeyError: 'RAW'

SemElVik opened this issue · 6 comments

Traceback (most recent call last):
File "<string*>", line 25, in <module*>
KeyError: 'RAW'

scrypt - KeyErr.txt

12.2.1 (21D62) Monterey

stopped working a couple of days ago.
I looked at the closed issue, but I'm not sure if I see a solution there

Hey @SemElVik, you probably want to check out the conversation in #100 I think this error usually occurs when you are hitting CryptoCompare's API limits. There are some steps to check in that issue.

Let me know if you need any assistance

if you are talking about it, then it does not help

2022-02-21_02-09-21

This comment should cover it, it looks like you need to include the apikey inside the " " before the .format()

#100 (comment)

i.e.

url = "https://min-api.cryptocompare.com/data/pricemultifull?fsyms={}&tsyms={}&api_key=10817XXX....".format(coin_ticker, fiat_ticker)

definitely not. I tried this too
2022-02-21_02-18-50
.

That did actually fix it as you have another error (line 20 passed, new error is on line 22).

That error is python complaining that the indentation does not match the previous line.

I'm unsure what exactly changed but if you create a fresh export from the site and only modify the url line as you did, it should work.

yes it worked

thanks!