fars-fede-fire / clever_api

Clever API Home Assistant custom component version 2
MIT License
8 stars 8 forks source link

500 Internal Server Error #12

Closed nagydavid closed 1 year ago

nagydavid commented 1 year ago

System Health details

System Information

version core-2023.9.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.5
os_name Linux
os_version 6.1.45
arch x86_64
timezone Europe/Copenhagen
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4996 Installed Version | 1.32.1 Stage | running Available Repositories | 1293 Downloaded Repositories | 44
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 | Home Assistant OS 10.5 -- | -- update_channel | stable supervisor_version | supervisor-2023.09.2 agent_version | 1.5.1 docker_version | 23.0.6 disk_total | 62.3 GB disk_used | 38.2 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | Advanced SSH & Web Terminal (15.0.8), Cloudflared (4.2.7), ESPHome (2023.8.3), Home Assistant Google Drive Backup (0.111.1), Mosquitto broker (6.3.1), PS5 MQTT (1.3.1), Piper (1.3.2), Portainer (2.0.0), Samba share (10.0.2), Studio Code Server (5.10.2), Vaultwarden (Bitwarden) (0.20.0), MariaDB (2.6.1), go2rtc (1.7.1), Node-RED (14.5.0)
Dashboards dashboards | 1 -- | -- resources | 32 views | 1 mode | yaml
Recorder oldest_recorder_run | September 15, 2023 at 19:24 -- | -- current_recorder_run | September 23, 2023 at 17:17 estimated_db_size | 6159.80 MiB database_engine | mysql database_version | 10.6.12

Checklist

Describe the issue

I am getting internal server error when I am trying to initialise the integration. Is it the result of the API deprecation or removal?

Reproduction steps

Debug logs

No logs can be given. Integration cannot be initialised.

Diagnostics dump

No response

nagydavid commented 1 year ago

I know there was a deprecation of APIs, but I saw some activity in the repo, so I assumed there is some work around.

smulle48 commented 1 year ago

I know there was a deprecation of APIs, but I saw some activity in the repo, so I assumed there is some work around.

I've made a PR waiting for it to be accepted (should be fixed now) :-D . That will fix that error.

fars-fede-fire commented 1 year ago

The updates are for making it more generic and easier to use it as template for other integrations. If you want to use the integration for Clever you have to obtain the URLs yourself for example using mitmproxy.

nagydavid commented 1 year ago

Lets, say I have the URLs, I am having and unknown error after the email added to the integration initialization, eventhough the URL works through postman

nagydavid commented 1 year ago

never mind.

nagydavid commented 1 year ago

@smulle48 @fars-fede-fire Sorry people last quetion. I cannot find any reference for the endpoint of VERIFY_LINK_CUTOFF. By the way thanks for pointing me to the mitmproxy, it's a cool stuff. :)

smulle48 commented 1 year ago

@smulle48 @fars-fede-fire Sorry people last quetion. I cannot find any reference for the endpoint of VERIFY_LINK_CUTOFF.

By the way thanks for pointing me to the mitmproxy, it's a cool stuff. :)

The email you get. That url actually contains two url.

The cutoff ends just before the second https in that url.

It could probably be done more elegant, but it do the job :-)

nagydavid commented 12 months ago

@fars-fede-fire @smulle48 , Did they just killed the add-on by changing the verification email?

smulle48 commented 12 months ago

@fars-fede-fire @smulle48 , Did they just killed the add-on by changing the verification email?

You can try this, to see if that works better

https://github.com/smulle48/clever_api

nagydavid commented 12 months ago

I am getting the same error: image

smulle48 commented 12 months ago

I am getting the same error:

image

I don't know if it was a bug at Clever's end, but it's working again here

fars-fede-fire commented 12 months ago

Currently I am working on a integration for my Volvo EV, so the Clever API integration is right now a lower priority although I have some ideas for optimazition.