jgarzik / jgarzik/python-bitcoinrpc
TypeError: string indices must be integers
- Lingua principale
- Python
- Stelle
- 663
- Fork
- 300
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi,
Getting errors on the batch example. This is in Python 2.7.
```
>>> commands = [ [ "getblockhash", height] for height in range(100) ]
>>> block_hashes = rpc_connection.batch_(commands)
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/bitcoinrpc/authproxy.py", line 169, in batch_
if response['error'] is not None:
TypeError: string indices must be integers
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start with authproxy.py at line 169, where batch_ handles the responses shown in the traceback. Reproduce the Python 2.7 batch example with getblockhash commands and inspect the returned response shape. Done means the example completes without the string-indices TypeError and returns the expected block hashes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100