pantherale0 / ha-nintendoparentalcontrols

Home Assistant integration for Nintendo Switch Parental Controls
MIT License
71 stars 6 forks source link

Error 404 when contancting nintendo #104

Closed fouram closed 1 month ago

fouram commented 2 months ago

System Health details

System Information

version core-2024.4.3
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 5.15.0-101-generic
arch x86_64
timezone America/New_York
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4871 Installed Version | 1.34.0 Stage | running Available Repositories | 1402 Downloaded Repositories | 54
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Ubuntu 22.04.4 LTS -- | -- update_channel | stable supervisor_version | supervisor-2024.04.0 agent_version | 1.4.1 docker_version | 26.0.1 disk_total | 62.8 GB disk_used | 50.8 GB healthy | true supported | failed to load: Unsupported supervisor_api | ok version_api | ok installed_addons | AirCast (4.2.1), Node-RED (17.0.12), Advanced SSH & Web Terminal (17.2.0), Grocy (0.21.0), Matrix (0.10.0), Studio Code Server (5.15.0), Samba share (12.3.1), MariaDB (2.7.1), phpMyAdmin (0.9.1), Network UPS Tools (0.13.0), Mosquitto broker (6.4.0), TasmoAdmin (0.30.0), Frigate (0.13.2), WeatherFlow to MQTT (3.2.2), Zigbee2MQTT (1.36.1-1), Piper (1.5.0), Whisper (2.0.0)
Dashboards dashboards | 7 -- | -- resources | 29 views | 30 mode | storage
Recorder oldest_recorder_run | March 24, 2024 at 3:31 AM -- | -- current_recorder_run | April 19, 2024 at 7:37 AM estimated_db_size | 1452.59 MiB database_engine | mysql database_version | 10.11.6

Checklist

Nintendo Parental Controls mobile app

Describe the issue

Integration fails with 404

Reproduction steps

1. 2. 3. ...

Debug logs

This error originated from a custom integration.

Logger: custom_components.nintendo_parental
Source: helpers/update_coordinator.py:347
integration: Nintendo Switch Parental Controls (documentation, issues)
First occurred: 7:38:14 AM (1 occurrences)
Last logged: 7:38:14 AM

Error fetching nintendo_parental data: ('HTTP Exception', 'HTTP Error', 404)

Diagnostics dump

No response

pantherale0 commented 2 months ago

Hi,

Thanks for reporting. Please can you enable debug logs and attach a log file?

Thanks

fouram commented 2 months ago
2024-04-25 14:28:19.172 DEBUG (MainThread) [pynintendoparental.authenticator] >> Init authenticator.
2024-04-25 14:28:19.173 DEBUG (MainThread) [pynintendoparental.authenticator] Refreshing access token.
2024-04-25 14:28:20.030 DEBUG (MainThread) [pynintendoparental] Received request to update data.
2024-04-25 14:28:20.031 DEBUG (MainThread) [pynintendoparental] Sending request to get_account_devices
2024-04-25 14:28:20.031 DEBUG (MainThread) [pynintendoparental] Built URL https://api-lp1.pctl.srv.nintendo.net/moon/v1/users/9188b4c753d0b924/devices?filter.device.activated.$eq=true
2024-04-25 14:28:20.178 DEBUG (MainThread) [pynintendoparental] Request to https://api-lp1.pctl.srv.nintendo.net/moon/v1/users/9188b4c753d0b924/devices?filter.device.activated.$eq=true status code 404
2024-04-25 14:28:20.179 ERROR (MainThread) [custom_components.nintendo_parental] Error fetching nintendo_parental data: ('HTTP Exception', 'HTTP Error', 404)
2024-04-25 14:28:20.179 DEBUG (MainThread) [custom_components.nintendo_parental] Finished fetching nintendo_parental data in 0.149 seconds (success: False)
pantherale0 commented 2 months ago

Thanks, what happens when you sign into the Nintendo Parental Control app?

pantherale0 commented 1 month ago

Hi,

This happens if the account you have used is not the one used to sign into the Nintendo Parental Control app.

Closing as integration is working as expected.