helgeerbe / OpenDTU-OnBattery

Software for ESP32 to talk to Hoymiles Inverters and Victrons MPPT battery chargers (Ve.Direct)
GNU General Public License v2.0
253 stars 56 forks source link

prometheus api runs out of resources. #1033

Open rudolfp1979 opened 3 weeks ago

rudolfp1979 commented 3 weeks ago

What happened?

when calling the prometheus api from browser after some time it runs out of ressources and tells Too Many Requests even if no requests where made active

To Reproduce Bug

no information

Expected Behavior

no information

Install Method

Pre-Compiled binary from GitHub

What git-hash/version of OpenDTU?

2024.06.03

Relevant log/trace output

13:53:16.440 > Calling /api/prometheus/metrics has temporarily run out of resources. Reason: "std::bad_alloc".

Anything else?

No response

rudolfp1979 commented 3 weeks ago

Found out that this happens when to much tabs in browser are open showing the main site. So this can be closed