Looks like it needs to be more than 1 some of the time. I captured the list in the error logs and the amber data is as little as 37 long. But its not very often.
["2023-08-07T19:00:00.052Z",500,"http://192.168.99.17:5000/action/naive-mpc-optim","<!doctype html>\n<html lang=en>\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n","{\"load_cost_forecast\":[0.17, 0.2, 0.21, 0.26, 0.43, 0.21, 0.19, 0.17, 0.13, 0.14, 0.13, 0.13, 0.15, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.39, 0.42, 0.4, 0.39, 0.42, 0.51, 0.7, 1.73, 13.38, 4.87, 1.16, 0.68, 0.44, 0.44, 0.44, 0.26, 0.22, 0.23, 0.2, 0.19, 0.19, 0.17, 0.19, 0.17, 0.16, 0.16, 0.16, 0.16],\"prod_price_forecast\":[0.07, 0.1, 0.11, 0.15, 0.31, 0.1, 0.09, 0.07, 0.04, 0.04, 0.04, 0.02, 0.03, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.3, 0.33, 0.31, 0.3, 0.33, 0.42, 0.59, 1.52, 12.12, 4.38, 1.0, 0.56, 0.32, 0.32, 0.32, 0.15, 0.12, 0.12, 0.09, 0.09, 0.09, 0.08, 0.09, 0.07, 0.07, 0.07, 0.07, 0.07],\"pv_power_forecast\":[0, 0, 0, 0, 5, 110, 489, 984, 1407, 1784, 2133, 2439, 2738, 2949, 3117, 3210, 3204, 3127, 2983, 2655, 2219, 1765, 1301, 773, 234, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 297, 795, 1334, 1846, 2281, 2670, 2969, 3215, 3384, 3483, 3493, 3450, 3327, 3136, 2844, 2501, 2106, 1652, 1099, 536, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\"prediction_horizon\":47,\"soc_init\":0.41,\"soc_final\":0.05,\"def_total_hours\":[2]}"]
["2023-08-07T20:00:00.818Z",500,"http://192.168.99.17:5000/action/naive-mpc-optim","<!doctype html>\n<html lang=en>\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n","{\"load_cost_forecast\":[0.22, 0.31, 0.43, 0.2, 0.17, 0.18, 0.13, 0.14, 0.13, 0.13, 0.15, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.39, 0.42, 0.41, 0.39, 0.42, 0.51, 0.7, 1.74, 13.38, 2.61, 1.0, 0.68, 0.44, 0.44, 0.44, 0.26, 0.22, 0.23, 0.2, 0.19, 0.19, 0.17, 0.19, 0.17, 0.16, 0.16, 0.16, 0.16],\"prod_price_forecast\":[0.11, 0.2, 0.3, 0.09, 0.07, 0.08, 0.04, 0.04, 0.04, 0.02, 0.03, 0.02, 0.02, 0.02, 0.02, 0.02, 0.02, 0.3, 0.33, 0.32, 0.3, 0.33, 0.42, 0.59, 1.53, 12.11, 2.33, 0.86, 0.57, 0.32, 0.32, 0.32, 0.15, 0.12, 0.12, 0.09, 0.09, 0.09, 0.08, 0.09, 0.07, 0.07, 0.07, 0.07, 0.07],\"pv_power_forecast\":[0, 0, 5, 110, 489, 984, 1407, 1784, 2133, 2439, 2738, 2949, 3117, 3210, 3204, 3127, 2983, 2655, 2219, 1765, 1301, 773, 234, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 297, 795, 1334, 1846, 2281, 2670, 2969, 3215, 3384, 3483, 3493, 3450, 3327, 3136, 2844, 2501, 2106, 1652, 1099, 536, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\"prediction_horizon\":45,\"soc_init\":0.4,\"soc_final\":0.05,\"def_total_hours\":[2]}"]
["2023-08-07T23:30:00.283Z",500,"http://192.168.99.17:5000/action/naive-mpc-optim","<!doctype html>\n<html lang=en>\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n","{\"load_cost_forecast\":[0.13, 0.15, 0.15, 0.15, 0.13, 0.11, 0.11, 0.11, 0.11, 0.13, 0.39, 0.4, 0.39, 0.39, 0.41, 0.49, 0.7, 1.51, 1.86, 1.76, 0.77, 0.68, 0.44, 0.44, 0.26, 0.26, 0.22, 0.22, 0.2, 0.19, 0.19, 0.17, 0.17, 0.17, 0.16, 0.16, 0.16, 0.16],\"prod_price_forecast\":[0.03, 0.05, 0.04, 0.03, 0.02, 0.0, 0.0, 0.0, 0.0, 0.02, 0.3, 0.32, 0.3, 0.3, 0.33, 0.39, 0.59, 1.32, 1.64, 1.55, 0.65, 0.57, 0.32, 0.32, 0.15, 0.15, 0.12, 0.12, 0.09, 0.09, 0.09, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07],\"pv_power_forecast\":[689, 1749, 1883, 2330, 2689, 2860, 2887, 2846, 2744, 2616, 2399, 2107, 1737, 1332, 833, 279, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 365, 891, 1429, 1940, 2375, 2761, 3058, 3287, 3457, 3542, 3562, 3487, 3364, 3165, 2884, 2546, 2163, 1709, 1166, 599, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\"prediction_horizon\":38,\"soc_init\":0.1,\"soc_final\":0.05,\"def_total_hours\":[2]}"]
["2023-08-08T00:00:00.198Z",500,"http://192.168.99.17:5000/action/naive-mpc-optim","<!doctype html>\n<html lang=en>\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n","{\"load_cost_forecast\":[0.13, 0.15, 0.15, 0.13, 0.13, 0.11, 0.11, 0.11, 0.12, 0.39, 0.4, 0.39, 0.39, 0.41, 0.48, 0.7, 1.25, 1.86, 1.16, 0.6, 0.65, 0.44, 0.41, 0.26, 0.26, 0.22, 0.22, 0.2, 0.19, 0.18, 0.17, 0.17, 0.17, 0.16, 0.16, 0.16, 0.16],\"prod_price_forecast\":[0.04, 0.03, 0.03, 0.02, 0.02, 0.0, 0.0, 0.0, 0.01, 0.3, 0.32, 0.3, 0.3, 0.33, 0.38, 0.59, 1.08, 1.64, 1.0, 0.5, 0.54, 0.32, 0.29, 0.15, 0.15, 0.12, 0.12, 0.09, 0.09, 0.08, 0.08, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07],\"pv_power_forecast\":[599, 1883, 2330, 2689, 2860, 2887, 2846, 2744, 2616, 2399, 2107, 1737, 1332, 833, 279, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 365, 891, 1429, 1940, 2375, 2761, 3058, 3287, 3457, 3542, 3562, 3487, 3364, 3165, 2884, 2546, 2163, 1709, 1166, 599, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\"prediction_horizon\":37,\"soc_init\":0.1,\"soc_final\":0.05,\"def_total_hours\":[2]}"]
["2023-08-08T00:30:00.328Z",500,"http://192.168.99.17:5000/action/naive-mpc-optim","<!doctype html>\n<html lang=en>\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n","{\"load_cost_forecast\":[0.13, 0.13, 0.13, 0.13, 0.13, 0.11, 0.11, 0.12, 0.39, 0.41, 0.39, 0.39, 0.41, 0.48, 0.7, 1.25, 1.86, 1.18, 0.62, 0.59, 0.41, 0.36, 0.26, 0.25, 0.22, 0.22, 0.2, 0.19, 0.18, 0.17, 0.19, 0.16, 0.16, 0.16, 0.16, 0.16],\"prod_price_forecast\":[0.02, 0.02, 0.02, 0.02, 0.01, 0.0, 0.0, 0.01, 0.3, 0.32, 0.3, 0.3, 0.33, 0.38, 0.59, 1.08, 1.64, 1.02, 0.51, 0.49, 0.29, 0.25, 0.15, 0.14, 0.12, 0.12, 0.09, 0.09, 0.08, 0.08, 0.09, 0.07, 0.07, 0.07, 0.07, 0.07],\"pv_power_forecast\":[1144, 2330, 2689, 2860, 2887, 2846, 2744, 2616, 2399, 2107, 1737, 1332, 833, 279, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 365, 891, 1429, 1940, 2375, 2761, 3058, 3287, 3457, 3542, 3562, 3487, 3364, 3165, 2884, 2546, 2163, 1709, 1166, 599, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\"prediction_horizon\":36,\"soc_init\":0.1,\"soc_final\":0.05,\"def_total_hours\":[2]}"]
["2023-08-08T01:00:00.228Z",500,"http://192.168.99.17:5000/action/naive-mpc-optim","<!doctype html>\n<html lang=en>\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n","{\"load_cost_forecast\":[0.11, 0.13, 0.13, 0.13, 0.12, 0.12, 0.12, 0.39, 0.4, 0.39, 0.39, 0.41, 0.48, 0.7, 1.25, 1.87, 1.04, 0.59, 0.6, 0.41, 0.36, 0.26, 0.25, 0.22, 0.22, 0.2, 0.19, 0.17, 0.17, 0.17, 0.17, 0.16, 0.16, 0.16, 0.16],\"prod_price_forecast\":[-0.01, 0.02, 0.02, 0.02, 0.0, 0.0, 0.01, 0.3, 0.31, 0.3, 0.3, 0.33, 0.38, 0.59, 1.08, 1.65, 0.89, 0.48, 0.49, 0.29, 0.25, 0.15, 0.14, 0.12, 0.12, 0.09, 0.09, 0.08, 0.08, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07],\"pv_power_forecast\":[1111, 2689, 2860, 2887, 2846, 2744, 2616, 2399, 2107, 1737, 1332, 833, 279, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 365, 891, 1429, 1940, 2375, 2761, 3058, 3287, 3457, 3542, 3562, 3487, 3364, 3165, 2884, 2546, 2163, 1709, 1166, 599, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\"prediction_horizon\":35,\"soc_init\":0.2,\"soc_final\":0.05,\"def_total_hours\":[2]}"]