infinityofspace / jellyfin_alexa_skill

Selfhosted Alexa media player skill for Jellyfin
GNU General Public License v3.0
71 stars 11 forks source link

Server cannot process the request due to a client error. #118

Open satnerd opened 8 months ago

satnerd commented 8 months ago

Describe the bug

Not really a bug but a request to add a bit more information to skill.conf. I struggled with below two skill.conf settings:

# required: The public address of your jellyfin server.
jellyfin_endpoint = jfep.example.com
# required: The public address of the skill web service.
skill_endpoint = skill.example.com

resulting in this stacktrace:

2024-01-04T13:26:24.216878754Z INFO:Updating skill manifest...
2024-01-04T13:26:24.675898282Z Traceback (most recent call last):
2024-01-04T13:26:24.675924478Z   File "/opt/venv/bin/jellyfin_alexa_skill", line 33, in <module>
2024-01-04T13:26:24.676205888Z     sys.exit(load_entry_point('jellyfin-alexa-skill==0.3.1', 'console_scripts', 'jellyfin_alexa_skill')())
2024-01-04T13:26:24.676400865Z   File "/opt/venv/lib/python3.10/site-packages/jellyfin_alexa_skill-0.3.1-py3.10.egg/jellyfin_alexa_skill/main.py", line 353, in main
2024-01-04T13:26:24.676745753Z     update_skill_manifest(config,
2024-01-04T13:26:24.676926575Z   File "/opt/venv/lib/python3.10/site-packages/jellyfin_alexa_skill-0.3.1-py3.10.egg/jellyfin_alexa_skill/main.py", line 218, in update_skill_manifest
2024-01-04T13:26:24.677236677Z     smapi_client.update_skill_manifest_v1(skill_id=skill_id,
2024-01-04T13:26:24.677419721Z   File "/opt/venv/lib/python3.10/site-packages/ask_smapi_model/services/skill_management/skill_management_service_client.py", line 12500, in update_skill_manifest_v1
2024-01-04T13:26:24.681121880Z     api_response = self.invoke(
2024-01-04T13:26:24.681284906Z   File "/opt/venv/lib/python3.10/site-packages/ask_sdk_model_runtime/base_service_client.py", line 143, in invoke
2024-01-04T13:26:24.681565999Z     raise ServiceException(message=exception_metadata.message,
2024-01-04T13:26:24.681675991Z ask_sdk_model_runtime.exceptions.ServiceException: Server cannot process the request due to a client error.

Changing to the below solved the problem.

jellyfin_endpoint = https://jfep.example.com
skill_endpoint = https://skill.example.com

Expected behavior

Please add an example string to the the skill.conf comment section