Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

{"statusCode":429,"message":"Rate limit is exceeded. Try again in 1 seconds."} #46

Open
tipp88 opened this issue Nov 24, 2023 · 34 comments

Comments

@tipp88
Copy link

tipp88 commented Nov 24, 2023

Any idea of this recent error message? The adapter worked well the past months.
I updated to latest JS controller few days back, that is only change on my end.

image

@Magoo2
Copy link

Magoo2 commented Nov 24, 2023

I have the same issue.

@TA2k
Copy link
Owner

TA2k commented Nov 24, 2023

I increased the pause time in the GitHub version please install via GitHub and check if this still the same

@Magoo2
Copy link

Magoo2 commented Nov 24, 2023

I installed the GitHub version and it seems to work.

@Magoo2
Copy link

Magoo2 commented Nov 25, 2023

Bad news :( I was happy to soon.
Obviously it happens after a half day.
image

@TA2k
Copy link
Owner

TA2k commented Nov 25, 2023

What is your update interval can you increase it

@Magoo2
Copy link

Magoo2 commented Nov 26, 2023

It was 5 Minutes and now I increased it to 7 minutes. Maybe tomorrow, we will know more.

@tipp88
Copy link
Author

tipp88 commented Nov 26, 2023

I changed to 8min even before the issue was raised here. It didn't help. For some reason yesterday no error was logged without updating. Today errors appeared again. I have now updated the adapter from Github and we will see during the day.

@tipp88
Copy link
Author

tipp88 commented Nov 26, 2023

It is already starting:
image

@Magoo2
Copy link

Magoo2 commented Nov 26, 2023

It was 5 Minutes and now I increased it to 7 minutes. Maybe tomorrow, we will know more.

Ok, it didn't help.

@lessthanmore1
Copy link

I usually have 10 minutes but my log is also flooded with the error message.

@TA2k
Copy link
Owner

TA2k commented Nov 29, 2023

Also with GitHub version and 15min log and wait 24h

@tipp88
Copy link
Author

tipp88 commented Nov 29, 2023

Also with GitHub version and 15min log and wait 24h

I don't think that it is related to update interval. Even if I decrease to 3min, I don't get much more errors than with 8 or even 10min. I have now set 15min on the Github version and will report tomorrow.

@tipp88
Copy link
Author

tipp88 commented Nov 30, 2023

Also with GitHub version and 15min log and wait 24h

No change, still this error happens at least once per hour.

image

@TA2k
Copy link
Owner

TA2k commented Nov 30, 2023

Which interval you are using for updates

@tipp88
Copy link
Author

tipp88 commented Nov 30, 2023

Which interval you are using for updates

15min as you requested
image

@TA2k
Copy link
Owner

TA2k commented Nov 30, 2023

Please increase to 20

@Norb1204
Copy link

Hallo,
habe mehr als 24h gewartet, Adapter gestartet und sofort kamen die 3 Fehlermeldungen. Intervall ist 20 min.
Gibt es überhaupt irgendeinen bei dem das funktioniert?

@tipp88
Copy link
Author

tipp88 commented Nov 30, 2023

Please increase to 20

Same....only difference is that "Try again in 1 seconds" switches between 1...2...3 seconds ....

@TA2k
Copy link
Owner

TA2k commented Nov 30, 2023

Please enable debug log and check if a request happens very often or two request without any pause

@marl1329
Copy link

marl1329 commented Dec 4, 2023

Same problem.
image
Update interval 20 Min.

@TA2k
Copy link
Owner

TA2k commented Dec 4, 2023

The log was helpful please retest the GitHub version

@tipp88
Copy link
Author

tipp88 commented Dec 5, 2023

I didn't update to that version but regardless the error didn't appear in last 48h... update interval still 15min.

@manny4566
Copy link

@LoboMau

Hab gerade die 2.7.0 installiert und kurz danach auch wieder evcc gestartet.

5 minuten lief es bis die APi wieder dicht gemacht hat,

Jetzt kommt wieder diese Meldungen, dass das Rate limit erreicht ist.
Das liegt an der Api, dass diese zu macht.

Also entweder bekommt man BMW dazu ihre Rate zu erhöhen oder man muss die Adapter und was noch so alles auf die BMW Api zugreift (z.b. evcc) sparsamaer machen, was die Requests angeht.
Ich weiß jetzt nicht wie der Adapter programmiert ist. Ob er nur einen Request macht oder mehrere. Da aber die Rate von scheinbar 100/min geknackt wird, scheint da irgendwo das Problem zu sein.

bmw.0
	2023-12-05 11:21:31.616	info	Rate limit is exceeded. Try again in 1 seconds. Retry in 5 seconds
bmw.0
	2023-12-05 11:21:26.541	info	Rate limit is exceeded. Try again in 1 seconds. Retry in 5 seconds
bmw.0
	2023-12-05 11:17:43.364	warn	Out of call volume quota. Quota will be replenished in 00:42:17.
bmw.0
	2023-12-05 11:17:38.278	info	Rate limit is exceeded. Try again in 1 seconds. Retry in 5 seconds
bmw.0
	2023-12-05 11:17:22.604	info	Rate limit is exceeded. Try again in 1 seconds. Retry in 5 seconds
bmw.0
	2023-12-05 11:16:52.008	warn	Out of call volume quota. Quota will be replenished in 00:43:09.
bmw.0
	2023-12-05 11:16:46.953	info	Rate limit is exceeded. Try again in 1 seconds. Retry in 5 seconds
bmw.0
	2023-12-05 11:16:41.866	info	Rate limit is exceeded. Try again in 1 seconds. Retry in 5 seconds
bmw.0
	2023-12-05 11:16:26.011	info	Rate limit is exceeded. Try again in 1 seconds. Retry in 5 seconds

@j64bit
Copy link

j64bit commented Dec 5, 2023

Hi,
habe die Version aus GitHub version und Interval auf 5 min gestellt.

Prima: keine ERROR level messages mehr und Adapter läuft durch.
DEBUG zeigt
image
und
image

Aber eigentlich kein Problem, denke ich.

Hauptsache der Adapter läuft durch ...
Danke!

Allerdings zwei WARNings:
image

image

@TA2k
Copy link
Owner

TA2k commented Dec 5, 2023

Es wird ein request pro interval abgesetzt.
Wie oft treten die infos über das rate limit auf?

@j64bit
Copy link

j64bit commented Dec 5, 2023

Here the full log - though i DELETED presumably private info.
bmw.log
'Termination' at end was to reduce log level back to "warn".
Was done by command:
grep bmw.0 *05.log | sed -e "s/\({\"[[:alpha:]]*\)\":.*/ \1 DELETED/" | sed "s/Y7X4.*/Y7_DELETED/"

@marl1329
Copy link

marl1329 commented Dec 5, 2023

@LoboMau

Hab gerade die 2.7.0 installiert und kurz danach auch wieder evcc gestartet.

5 minuten lief es bis die APi wieder dicht gemacht hat,

Jetzt kommt wieder diese Meldungen, dass das Rate limit erreicht ist. Das liegt an der Api, dass diese zu macht.

Ich habe bei mir evcc so eingerichtet, das es die Werte aus iobroker verwendet.
Dadurch greift nur einer regelmäßig über die API zu.
Trotzdem kommen die Meldungen auch mit 2.7.0 noch unregelmäßig.

@manny4566
Copy link

@LoboMau
Hab gerade die 2.7.0 installiert und kurz danach auch wieder evcc gestartet.
5 minuten lief es bis die APi wieder dicht gemacht hat,
Jetzt kommt wieder diese Meldungen, dass das Rate limit erreicht ist. Das liegt an der Api, dass diese zu macht.

Ich habe bei mir evcc so eingerichtet, das es die Werte aus iobroker verwendet. Dadurch greift nur einer regelmäßig über die API zu. Trotzdem kommen die Meldungen auch mit 2.7.0 noch unregelmäßig.

Magst du mir den Block für vehicles mal schicken? Oder wie hast du evcc eingestellt was das Fahrzeug angeht ?
Danke

@marl1329
Copy link

marl1329 commented Dec 5, 2023

Magst du mir den Block für vehicles mal schicken? Oder wie hast du evcc eingestellt was das Fahrzeug angeht ? Danke

vehicles:
- name: BMW
type: custom
title: BMW
capacity: 22 # Akkukapazität in kWh (optional)
soc:
source: http
uri: "http://xxxx:8087/getPlainValue/bmw.0.vin.state.electricChargingState.chargingLevelPercent"
method: GET
status:
source: combined
plugged:
source: http
uri: "http://xxxx:8087/getPlainValue/bmw.0.vin.state.electricChargingState.isChargerConnected"
method: GET
charging:
source: http
uri: "http://xxxx:8087/getPlainValue/0_userdata.0.BMW.ChargingState"
method: GET
range:
source: http
uri: "http://xxxx:8087/getPlainValue/bmw.0.vin.state.electricChargingState.range"
method: GET
phases: 1

0_userdata.0.BMW.ChargingState ist eine boolsche Variable die über den Status bmw.0.vin.state.electricChargingState.chargingStatus
beim Laden "True" wird.
Wenn die Wallbox den BMW erkennt, wird ein Refresh der Daten vom BMW Adapter getriggert.
Die Daten werden über den Simple_API Adapter gelesen.
Was nicht geht sind die Mode und TargetSOC Einstellungen, darauf kann ich aber verzichten.

@manny4566
Copy link

Magst du mir den Block für vehicles mal schicken? Oder wie hast du evcc eingestellt was das Fahrzeug angeht ? Danke

vehicles: - name: BMW type: custom title: BMW capacity: 22 # Akkukapazität in kWh (optional) soc: source: http uri: "http://xxxx:8087/getPlainValue/bmw.0.vin.state.electricChargingState.chargingLevelPercent" method: GET status: source: combined plugged: source: http uri: "http://xxxx:8087/getPlainValue/bmw.0.vin.state.electricChargingState.isChargerConnected" method: GET charging: source: http uri: "http://xxxx:8087/getPlainValue/0_userdata.0.BMW.ChargingState" method: GET range: source: http uri: "http://xxxx:8087/getPlainValue/bmw.0.vin.state.electricChargingState.range" method: GET phases: 1

0_userdata.0.BMW.ChargingState ist eine boolsche Variable die über den Status bmw.0.vin.state.electricChargingState.chargingStatus beim Laden "True" wird. Wenn die Wallbox den BMW erkennt, wird ein Refresh der Daten vom BMW Adapter getriggert. Die Daten werden über den Simple_API Adapter gelesen. Was nicht geht sind die Mode und TargetSOC Einstellungen, darauf kann ich aber verzichten.

Danke, werde ich mir mal angucken.

@Magoo2
Copy link

Magoo2 commented Dec 5, 2023

Leider bekomme ich auch mit 2.7.0 Fehlermeldungen.
image

@tipp88
Copy link
Author

tipp88 commented Dec 6, 2023

Ich hatte die Instanz länger deaktiviert (über 1 Tag) und nun wieder aktiviert. Sofort der Fehler. Kann doch nicht am API Limit liegen wenn ich es lange Aus hatte?!
image

image

@tipp88
Copy link
Author

tipp88 commented Dec 6, 2023

Nach dem Ersten 10min Intervall dann Erfolg:
image

@TA2k
Copy link
Owner

TA2k commented Dec 6, 2023

Mit 2.72 wird die Meldung ausgeblendet da sie nicht relevant ist.

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

No branches or pull requests

8 participants