Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONDecodeError: Expecting value: line 1 column 1 (char 0) #33

Open
AGrosserHH opened this issue Aug 25, 2021 · 0 comments
Open

JSONDecodeError: Expecting value: line 1 column 1 (char 0) #33

AGrosserHH opened this issue Aug 25, 2021 · 0 comments

Comments

@AGrosserHH
Copy link

Hi,
when running the example data in the README I am getting an error
JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Here is the complete file:


JSONDecodeError Traceback (most recent call last)
in
15
16 # post your dataset!
---> 17 client.datasets.post_dataset(dataset)

~\anaconda3\lib\site-packages\pypowerbi\datasets.py in post_dataset(self, dataset, group_id)
130 # 201 - Created. The request was fulfilled and a new Dataset was created.
131 if response.status_code != 201:
--> 132 raise HTTPError(response, f'Post Datasets request returned http code: {response.json()}')
133
134 return Dataset.from_dict(json.loads(response.text))

~\anaconda3\lib\site-packages\requests\models.py in json(self, **kwargs)
898 # used.
899 pass
--> 900 return complexjson.loads(self.text, **kwargs)
901
902 @Property

~\anaconda3\lib\json_init_.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
355 parse_int is None and parse_float is None and
356 parse_constant is None and object_pairs_hook is None and not kw):
--> 357 return _default_decoder.decode(s)
358 if cls is None:
359 cls = JSONDecoder

~\anaconda3\lib\json\decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):

~\anaconda3\lib\json\decoder.py in raw_decode(self, s, idx)
353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
--> 355 raise JSONDecodeError("Expecting value", s, err.value) from None
356 return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Has someone come across this?

Cheers, Andi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant