Mousam fails to display forecast
- Linguagem predominante
- Python
- Estrelas
- 482
- Forks
- 71
- Merge médio
- 6d 3h
- PRs com merge (30d)
- 2
Descrição
I'm using the snap version on Ubuntu 26.04 LTS.
The window shows only error message: Fetch Error Expecting value: line 1 column 1 (char 0).
I've enabled the debug mode and this is the mousam.log after a couple runs of the program.
```
2026-05-03 15:30:02,999 - mousam - INFO - Logging enabled
2026-05-03 15:30:02,999 - mousam - INFO - Logging level set to: DEBUG
2026-05-03 15:30:09,815 - mousam.networking - INFO - Starting background fetch for all weather data
2026-05-03 15:30:09,815 - mousam.networking - DEBUG - Starting target: update_current_weather
2026-05-03 15:30:09,816 - mousam.data_manager - DEBUG - Fetching current weather for cords: [it has the right coordinates here]
2026-05-03 15:30:17,542 - mousam.networking - DEBUG - Finished target: update_current_weather
2026-05-03 15:30:17,542 - mousam.networking - INFO - Current weather fetched successfully, starting forecasts and air pollution
2026-05-03 15:30:17,543 - mousam.networking - DEBUG - Starting target: update_hourly_forecast
2026-05-03 15:30:17,543 - mousam.networking - DEBUG - Starting target: update_daily_forecast
2026-05-03 15:30:17,543 - mousam.networking - DEBUG - Starting target: update_air_pollution
2026-05-03 15:30:17,543 - mousam.networking - DEBUG - Starting target: get_time_difference
2026-05-03 15:30:17,545 - mousam.networking - ERROR - Error in target get_time_difference: Expecting value: line 1 column 1 (char 0)
2026-05-03 15:30:17,831 - mousam.data_manager - INFO - Air pollution data updated successfully
2026-05-03 15:30:17,832 - mousam.networking - DEBUG - Finished target: update_air_pollution
2026-05-03 15:30:25,430 - mousam.networking - DEBUG - Finished target: update_hourly_forecast
2026-05-03 15:30:26,314 - mousam.networking - DEBUG - Finished target: update_daily_forecast
2026-05-03 15:30:26,315 - mousam.networking - ERROR - Error fetching data: Expecting value: line 1 column 1 (char 0)
2026-05-03 15:36:12,176 - mousam.main - INFO - Application activated
2026-05-03 15:36:12,221 - mousam.networking - INFO - Starting background fetch for all weather data
2026-05-03 15:36:12,222 - mousam.networking - DEBUG - Starting target: update_current_weather
2026-05-03 15:36:12,222 - mousam.data_manager - DEBUG - Fetching current weather for cords: [it has the right coordinates here]
2026-05-03 15:36:12,506 - mousam.networking - DEBUG - Finished target: update_current_weather
2026-05-03 15:36:12,507 - mousam.networking - INFO - Current weather fetched successfully, starting forecasts and air pollution
2026-05-03 15:36:12,507 - mousam.networking - DEBUG - Starting target: update_hourly_forecast
2026-05-03 15:36:12,507 - mousam.networking - DEBUG - Starting target: update_daily_forecast
2026-05-03 15:36:12,508 - mousam.networking - DEBUG - Starting target: update_air_pollution
2026-05-03 15:36:12,509 - mousam.networking - DEBUG - Starting target: get_time_difference
2026-05-03 15:36:12,511 - mousam.networking - ERROR - Error in target get_time_difference: Expecting value: line 1 column 1 (char 0)
2026-05-03 15:36:12,788 - mousam.data_manager - INFO - Air pollution data updated successfully
2026-05-03 15:36:12,788 - mousam.networking - DEBUG - Finished target: update_air_pollution
2026-05-03 15:36:12,793 - mousam.networking - DEBUG - Finished target: update_daily_forecast
2026-05-03 15:36:12,795 - mousam.networking - DEBUG - Finished target: update_hourly_forecast
2026-05-03 15:36:12,796 - mousam.networking - ERROR - Error fetching data: Expecting value: line 1 column 1 (char 0)
2026-05-03 15:37:31,690 - mousam.networking - INFO - Starting background fetch for all weather data
2026-05-03 15:37:31,691 - mousam.networking - DEBUG - Starting target: update_current_weather
2026-05-03 15:37:31,691 - mousam.data_manager - DEBUG - Fetching current weather for cords: [it has the right coordinates here]
2026-05-03 15:37:31,964 - mousam.networking - DEBUG - Finished target: update_current_weather
2026-05-03 15:37:31,964 - mousam.networking - INFO - Current weather fetched successfully, starting forecasts and air pollution
2026-05-03 15:37:31,964 - mousam.networking - DEBUG - Starting target: update_hourly_forecast
2026-05-03 15:37:31,965 - mousam.networking - DEBUG - Starting target: update_daily_forecast
2026-05-03 15:37:31,965 - mousam.networking - DEBUG - Starting target: update_air_pollution
2026-05-03 15:37:31,965 - mousam.networking - DEBUG - Starting target: get_time_difference
2026-05-03 15:37:31,967 - mousam.networking - ERROR - Error in target get_time_difference: Expecting value: line 1 column 1 (char 0)
2026-05-03 15:37:32,185 - mousam.data_manager - INFO - Air pollution data updated successfully
2026-05-03 15:37:32,185 - mousam.networking - DEBUG - Finished target: update_air_pollution
2026-05-03 15:37:32,226 - mousam.networking - DEBUG - Finished target: update_daily_forecast
2026-05-03 15:37:32,245 - mousam.networking - DEBUG - Finished target: update_hourly_forecast
2026-05-03 15:37:32,246 - mousam.networking - ERROR - Error fetching data: Expecting value: line 1 column 1 (char 0)
2026-05-03 15:38:34,277 - mousam.main - INFO - Application activated
2026-05-03 15:38:34,328 - mousam.networking - INFO - Starting background fetch for all weather data
2026-05-03 15:38:34,329 - mousam.networking - DEBUG - Starting target: update_current_weather
2026-05-03 15:38:34,329 - mousam.data_manager - DEBUG - Fetching current weather for cords: [it has the right coordinates here]
2026-05-03 15:38:49,329 - mousam.networking - ERROR - Error fetching data: Current weather fetch timed out
2026-05-03 15:38:49,490 - mousam.API_Weather - ERROR - Failed to fetch current weather data: HTTPSConnectionPool(host='api.open-meteo.com', port=443): Read timed out. (read timeout=15)
2026-05-03 15:38:49,491 - mousam.data_manager - ERROR - Failed to fetch current weather data from API
2026-05-03 15:38:49,491 - mousam.networking - ERROR - Error in target update_current_weather: Failed to fetch current weather data
```
And here is what I get in terminal:
```
2026-05-03 15:38:34,277 - mousam.main - INFO - Application activated
2026-05-03 15:38:34,328 - mousam.networking - INFO - Starting background fetch for all weather data
2026-05-03 15:38:34,329 - mousam.networking - DEBUG - Starting target: update_current_weather
2026-05-03 15:38:34,329 - mousam.data_manager - DEBUG - Fetching current weather for cords: [it has the right coordinates here]
2026-05-03 15:38:49,329 - mousam.networking - ERROR - Error fetching data: Current weather fetch timed out
2026-05-03 15:38:49,490 - mousam.API_Weather - ERROR - Failed to fetch current weather data: HTTPSConnectionPool(host='api.open-meteo.com', port=443): Read timed out. (read timeout=15)
2026-05-03 15:38:49,491 - mousam.data_manager - ERROR - Failed to fetch current weather data from API
2026-05-03 15:38:49,491 - mousam.networking - ERROR - Error in target update_current_weather: Failed to fetch current weather data
2026-05-03 15:39:39,017 - mousam.networking - INFO - Starting background fetch for all weather data
2026-05-03 15:39:39,017 - mousam.networking - DEBUG - Starting target: update_current_weather
2026-05-03 15:39:39,017 - mousam.data_manager - DEBUG - Fetching current weather for cords: [it has the right coordinates here]
2026-05-03 15:39:39,254 - mousam.networking - DEBUG - Finished target: update_current_weather
2026-05-03 15:39:39,254 - mousam.networking - INFO - Current weather fetched successfully, starting forecasts and air pollution
2026-05-03 15:39:39,254 - mousam.networking - DEBUG - Starting target: update_hourly_forecast
2026-05-03 15:39:39,254 - mousam.networking - DEBUG - Starting target: update_daily_forecast
2026-05-03 15:39:39,254 - mousam.networking - DEBUG - Starting target: update_air_pollution
2026-05-03 15:39:39,254 - mousam.networking - DEBUG - Starting target: get_time_difference
2026-05-03 15:39:39,257 - mousam.networking - ERROR - Error in target get_time_difference: Expecting value: line 1 column 1 (char 0)
2026-05-03 15:39:39,493 - mousam.networking - DEBUG - Finished target: update_daily_forecast
2026-05-03 15:39:39,503 - mousam.data_manager - INFO - Air pollution data updated successfully
2026-05-03 15:39:39,504 - mousam.networking - DEBUG - Finished target: update_air_pollution
2026-05-03 15:39:39,510 - mousam.networking - DEBUG - Finished target: update_hourly_forecast
2026-05-03 15:39:39,510 - mousam.networking - ERROR - Error fetching data: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/snap/mousam/current/usr/share/mousam/mousam/mousam.py", line 249, in _render_weather_grid
curr_cond = CurrentCondition()
^^^^^^^^^^^^^^^^^^
File "/snap/mousam/current/usr/share/mousam/mousam/UI_CurrentCond.py", line 19, in __init__
self.paint_ui()
File "/snap/mousam/current/usr/share/mousam/mousam/UI_CurrentCond.py", line 74, in paint_ui
city_list_json = JsonProcessor.str_list_to_json(settings.added_cities)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/mousam/current/usr/share/mousam/mousam/CORE_Helpers.py", line 62, in str_list_to_json
return [json.loads(item) for item in data]
^^^^^^^^^^^^^^^^
File "/snap/mousam/408/gnome-platform/usr/lib/python3.12/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/mousam/408/gnome-platform/usr/lib/python3.12/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/mousam/408/gnome-platform/usr/lib/python3.12/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
```
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.