nanocurrency/nano-docs

JSONDecodeError: Expecting value: line 2 column 1 (char 1) while doing post request

YoManGaming opened this issue · 1 comments

main_wallet = rpc.account_create('2CB551493A078786CDA2622C12901721D959BDB8A9BB61592FBC625187850C86', False)
File "C:\Users\matti\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\nano\rpc.py", line 378, in account_create
resp = self.call('account_create', payload)
File "C:\Users\matti\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\nano\rpc.py", line 82, in call
result = resp.json()
File "C:\Users\matti\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\requests\models.py", line 892, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)

i dont know what im doing wrong, but i did a post request for creating a wallet but it gives this error. im doing this with MkDocs. i hope i have told everything you need to know to solve this

@YoManGaming It looks like you are using a python library to handle the calls. If so, you will need to raise this issue with the maintainer of that code base. We don't manage any python libraries. If this was from an example we posted in the docs, can you share a link to the page/resource you got it from please?