CounterpartyXCP / counterblock

Provides extended API services to Counterwallet, as well as Counterparty 3rd-party applications
http://counterparty.io
MIT License
16 stars 68 forks source link

Failure to parse valid JSON #152

Closed jdogresorg closed 7 years ago

jdogresorg commented 7 years ago

I am seeing counterblock throw warnings when trying to parse JSON which appears to be valid and which passes the feed/asset schemas.

WARNING:betting: Fetch for feed at http://xcpfeeds.io/feed/LgRjD not successful: Invalid JSON data: the JSON object must be str, not 'generator' (try 1 of 3)
WARNING:betting: Fetch for feed at http://xcpfeeds.io/feed/RXvWU not successful: Invalid JSON data: the JSON object must be str, not 'generator' (try 1 of 3)
WARNING:betting: Fetch for feed at http://xcpfeeds.io/feed/EXQei not successful: Invalid JSON data: the JSON object must be str, not 'generator' (try 1 of 3)
WARNING:assets: Fetch for asset at http://res.indiesquare.me/json/MILESCOIN.json not successful: Invalid JSON data: the JSON object must be str, not 'generator' (try 3 of 3)

I believe this is probably a bug from the python3 update, casting the generator to str would probably fix the issue.... but I don't code python.