arska-node icon indicating copy to clipboard operation
arska-node copied to clipboard

"Cannot get prices" issue

Open joe-ave opened this issue 3 months ago • 8 comments

Hello Olli,

I noticed that sometimes the Arska node has problem to get the new priceinfo, refresh of webpage does not help to rule out browser behaviour.

if I do"restart and clear cash" I get the new info.

Picture from my testboard.

Image

1.3.0 alfa 9, SE3

//Jonas

joe-ave avatar Oct 27 '25 17:10 joe-ave

Hi Jonas, I'll check if I can find reliability issues with getting Entso-E price and if restart can make a difference (better change to get price data successfully for some reason after reset🤔). Basically Arska makes a retry 10-11 minutes after an unsuccessful attempt.

Olli

Olli69 avatar Oct 28 '25 07:10 Olli69

I added some connection cleanup functions (clean_stop_client) before disconnecting/stopping after after unsuccesful https connection (e.g. Entso-E). Let's see if it helps - could be that socket/connection could have not been reused and that is why reboot was needed. The change is pulled to github and current tested in several ESP32:s(SE3).

Olli69 avatar Nov 01 '25 10:11 Olli69

There was still an error in an variable initialiazation causing problems in after first price query. Now fixed (tested with a simulation) in 1.3.0-alfa10. Closing, but please open if the same problem still exists.

Olli69 avatar Nov 01 '25 14:11 Olli69

For info I reverted my testboard to alfa 8 before lunch today and that did update. Now both boards are running alfa 10.

joe-ave avatar Nov 01 '25 14:11 joe-ave

Hello Olli,

the problem is still there, I got an error today that it could not get price data, when I did restart and clear cash it worked. I can not select to reopen issue, no permission-

//Jonas

joe-ave avatar Nov 03 '25 22:11 joe-ave

I thought,that it was solved, but you are right, there was still something after first query to Entso-E. I rewrote some functionalities and now it is under testing. Hopefully tomorrow it gets prices right...

Olli69 avatar Nov 04 '25 19:11 Olli69

newest build 1.3.0-alfa11 should fix the problem. It has been several days in testing (SE3). Problem was in rewritten chunked http response used by Entso-E price query. In countries with Elering as backup (FI,EE,LV,LT) this was not causing bigger problems.

Olli69 avatar Nov 10 '25 20:11 Olli69

Thanks Olli!,

I´ll change asap to test.

//Jonas

joe-ave avatar Nov 10 '25 21:11 joe-ave

It´s been working now since the update.

//Jonas

joe-ave avatar Nov 29 '25 12:11 joe-ave