Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Issue while running the script #5

@ghust

Description

@ghust

Hey Bram,

I reinstalled a computer and now wanted to add my "log degiro portfolio"-cronjob again.
However, after installing python and requests, I get the following when running:

<Response [200]>
Account id: whatever
Get data
Status code: 401
Traceback (most recent call last):
File "test.py", line 7, in
pfs = la.getPortfolioSummary()
File "/home/osmc/python/pyscripts/degiro.py", line 88, in getPortfolioSummary
pf = self.getPortfolio()
File "/home/osmc/python/pyscripts/degiro.py", line 102, in getPortfolio
self.getData()
File "/home/osmc/python/pyscripts/degiro.py", line 68, in getData
self.data = r.json()
File "/usr/local/lib/python3.5/dist-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


Any pointers? Cheers :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions