hoylabs / OpenDTU-OnBattery

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters, VE.Direct devices, battery management systems, and related peripherals
GNU General Public License v2.0
301 stars 63 forks source link

prometheus api runs out of resources. #1033

Closed rudolfp1979 closed 1 month ago

rudolfp1979 commented 4 months 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 4 months ago

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

schlimmchen commented 1 month ago

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

Thanks for your feedback. Your observation makes sense, as every connection to the OpenDTU websocket(s) use resources.

github-actions[bot] commented 2 weeks ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.