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 #530

Open
MoBro23 opened this issue Dec 4, 2022 · 1 comment
Open

JSONDecodeError #530

MoBro23 opened this issue Dec 4, 2022 · 1 comment

Comments

@MoBro23
Copy link

MoBro23 commented Dec 4, 2022

Coulnt find a solution
grafik

Here is the text version

JSONDecodeError Traceback (most recent call last)

in generate(button)
410 filename = model.value + ('' if model.value == 'fashion' else '-cpk') + '.pth.tar'
411 if not os.path.isfile(filename):
--> 412 download = requests.get(requests.get('https://drive.google.com/drive/folders/1PyQJmkdCsAkOYwUyaj_l-l0as-iLDgeH' + filename).json().get('href'))
413 with open(filename, 'wb') as checkpoint:
414 checkpoint.write(download.content)

3 frames

/usr/local/lib/python3.8/dist-packages/requests/models.py in json(self, **kwargs)
896 # used.
897 pass
--> 898 return complexjson.loads(self.text, **kwargs)
899
900 @Property

/usr/lib/python3.8/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

/usr/lib/python3.8/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):

/usr/lib/python3.8/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)

@graphemecluster
Copy link
Contributor

@AliaksandrSiarohin Fixed by #531.

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

2 participants