Got ErrorMessage von Balena API - Balena error code 429 ("Too Many Requests")

Hello There!

Since last wednesday (28.09.2022) we’ve got tons of Error Messages from Balena.
Have any changes been made to the API?

Thank you Very Much for the Information.

Greetings Lukas

Hi Lucas,

Could you give some more details about what new error messages you are seeing, and where you are seeing them?

HI @rcooke-warwick
We got this Error Messages in the Balena UI (Top Right).

And also when we want to Authenticate by Balena from one of our Servers:

[qtp1887015670-70378] ERROR spark.http.matching.GeneralError - 
xxx.configserver.publicapi.auth.BalenaApiException: Balena error code 429 ("Too Many Requests")
	at xxx.configserver.publicapi.auth.DeviceAuthenticationRestService.lambda$static$2(
	at spark.RouteImpl$1.handle(
	at spark.http.matching.Routes.execute(
	at spark.http.matching.MatcherFilter.doFilter(
	at spark.embeddedserver.jetty.JettyHandler.doHandle(
	at org.eclipse.jetty.server.session.SessionHandler.doScope(
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
	at org.eclipse.jetty.server.Server.handle(
	at org.eclipse.jetty.server.HttpChannel.handle(
	at org.eclipse.jetty.server.HttpConnection.onFillable(
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
	at org.eclipse.jetty.util.thread.QueuedThreadPool$
	at java.base/

Hello, are you by any means doing a lot of auth requests at the same time? The error 429 you get from balena-api is our rate limit to avoid brute force attempts of logins.
From you stack trace I see that you have an HTTP server that executes an auth call automatically, you probably should take a look on only doing login if the user isn’t already on a session and check on how many auth requests you are triggering.