Skip to content
New issue

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

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

Already on GitHub? # to your account

Can't add my config to the profile cache #26

Closed
Tiliii opened this issue Jul 20, 2023 · 1 comment
Closed

Can't add my config to the profile cache #26

Tiliii opened this issue Jul 20, 2023 · 1 comment

Comments

@Tiliii
Copy link

Tiliii commented Jul 20, 2023

I don't really know what ham doing wrong here, so any help is appreciated

That's what terminal is printing out whenever I try to add the config to the profile cache:

til@wl-pool2-pnt-24480 ~ % spotify_sync config add myFirstProfile ./config.json
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/bin/spotify_sync", line 8, in
sys.exit(cli())
^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/spotify_sync/main.py", line 226, in config_add
app.cache_config_profile(name, path)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/spotify_sync/cli.py", line 177, in cache_config_profile
self.cc.add(name, path)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/spotify_sync/config.py", line 64, in add
c_loader = ConfigLoader(config_file=Path(path))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/spotify_sync/config.py", line 223, in init
self._load_config()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/spotify_sync/config.py", line 302, in _load_config
self._config = json.load(f)
^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 23 column 26 (char 950)
til@wl-pool2-pnt-24480 ~ %

@Tiliii
Copy link
Author

Tiliii commented Jul 20, 2023

it was my mistake sorry, I did mess up the config...

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

No branches or pull requests

1 participant