pypowerbi icon indicating copy to clipboard operation
pypowerbi copied to clipboard

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

Open AGrosserHH opened this issue 3 years ago • 0 comments

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

AGrosserHH avatar Aug 25 '21 16:08 AGrosserHH