json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 4175618 (char 4175617)
Traceback (most recent call last):
File "C:\Users\tyler\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\tyler\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\tyler\AppData\Local\Programs\Python\Python38\Scripts\tkdesigner.exe_main.py", line 7, in
self.file_data = self.figma_file.get_file()
File "C:\Users\tyler\AppData\Local\Programs\Python\Python38\lib\site-packages\tkdesigner\figma\endpoints.py", line 32, in get_file
return response.json()
File "C:\Users\tyler\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\tyler\AppData\Local\Programs\Python\Python38\lib\json_init
This happens when trying to run the tkdesigner URL token command, used pip install, windows machine
I think it has to do with the format of whatever is coming in from the request. Python is having a hard time converting it into JSON format.
Ok, I wrote the response.text out to a file then validated the JSON using an online tool. Then I loaded it back into the program, it worked. It looks nothing like the original though, because no rounded edges.
Facing the same issue here
Hey @Tylersuard & @pshiri can you share your Figma file links ? There was a bug in Figma API which would return incomplete JSON. Need to verify if true.