Bug in dev: 422 Client Error: Unprocessable Content
Hey, since the introduction of 15-minute-intervals I'm getting quite frequently "no detailed error information available - error message: 422 Client Error: Unprocessable Content for url: http://192.168.2.70:8503/optimize?start_hour=9" (or other hours respectively) Usually an addon restart helped, currently it doesn't anymore.
I'm on EOS connect version: 0.2.28.193-develop and EOS v0.2.0+dev.
I'd like to complete the bug report with the json that's sent to EOS causing the error - in case it helps, could you remind me how I can extract it from EOS connect?
Best regards
in direction of EOS there is no usually no change
but yes, to go deeper - logs are needed around the occurance
🔧 System Data
⚠️ Recent Errors & Warnings (1 found)
2025-11-20T09:04:28.207633+01:00 [ERROR] [PV-IF] Initialize - No pv entries found
🎛️ Current System Controls & States
Click to expand system controls
{
"current_states": {
"current_ac_charge_demand": 0,
"current_dc_charge_demand": 5000,
"current_discharge_allowed": true,
"inverter_mode": "MODE DISCHARGE ALLOWED",
"inverter_mode_num": 2,
"override_active": false,
"override_end_time": 0
},
"evcc": {
"charging_state": false,
"charging_mode": "off",
"current_sessions": [
{
"connected": false,
"charging": false,
"mode": "pv",
"chargeDuration": 0,
"chargeRemainingDuration": 0,
"chargedEnergy": 0,
"chargeRemainingEnergy": 0,
"sessionEnergy": 0,
"vehicleSoc": 0,
"vehicleRange": 0,
"vehicleOdometer": 46704,
"vehicleName": "Born",
"smartCostActive": false,
"planActive": false
},
{
"connected": true,
"charging": false,
"mode": "off",
"chargeDuration": 0,
"chargeRemainingDuration": 0,
"chargedEnergy": 0,
"chargeRemainingEnergy": 0,
"sessionEnergy": 0,
"vehicleSoc": 38.6,
"vehicleRange": 0,
"vehicleOdometer": 0,
"vehicleName": "",
"smartCostActive": false,
"planActive": false
}
]
},
"battery": {
"soc": 77.8,
"usable_capacity": 15001.73,
"max_charge_power_dyn": 5000,
"max_grid_charge_rate": 10000
},
"inverter": {
"inverter_special_data": null
},
"localization": {
"currency": "EUR",
"currency_symbol": "€",
"currency_minor_unit": "ct"
},
"state": {
"request_state": "response received",
"last_request_timestamp": "2025-11-20T09:04:32.010091+01:00",
"last_response_timestamp": "2025-11-20T09:04:41.465396+01:00",
"next_run": "2025-11-20T09:09:41.466073+01:00"
},
"used_optimization_source": "eos_server",
"used_time_frame_base": 3600,
"eos_connect_version": "0.2.28.193-develop",
"timestamp": "2025-11-20T09:08:55.326207+01:00",
"api_version": "0.0.3"
}
📤 Last Optimization Request
Click to expand optimization request
{
"ems": {
"pv_prognose_wh": [
0,
0,
0,
0,
0,
0,
0,
0,
270.9,
1034.4,
1154.2,
1594.8,
1482.3,
1376.7,
894,
855.2,
140.9,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
472.3,
2826.2,
4343.4,
5697.4,
6547.6,
6386.8,
5330.4,
3373.8,
429,
0,
0,
0,
0,
0,
0,
0
],
"strompreis_euro_pro_wh": [
0.0002981,
0.0002951,
0.0002938,
0.0002936,
0.000294,
0.000298,
0.0003136,
0.0003621,
0.0003756,
0.0003731,
0.0003584,
0.0003441,
0.0003391,
0.0003403,
0.00035,
0.0003684,
0.0003995,
0.0003991,
0.0003846,
0.0003759,
0.0003534,
0.000334,
0.000319,
0.0003018,
0.0002981,
0.0002951,
0.0002938,
0.0002936,
0.000294,
0.000298,
0.0003136,
0.0003621,
0.0003756,
0.0003731,
0.0003584,
0.0003441,
0.0003391,
0.0003403,
0.00035,
0.0003684,
0.0003995,
0.0003991,
0.0003846,
0.0003759,
0.0003534,
0.000334,
0.000319,
0.0003018
],
"einspeiseverguetung_euro_pro_wh": [
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008,
0.00008
],
"preis_euro_pro_wh_akku": 0.00013,
"gesamtlast": [
587.832,
614.298,
675.677,
590.839,
2074.651,
603.25,
1202.439,
1522.741,
620.158,
1873.014,
511.518,
1727.703,
3349.712,
2425.349,
2033.703,
925,
549.258,
620.95,
578.033,
639.594,
772.049,
773.887,
758.78,
701.781,
782.613,
636.893,
637.193,
610.684,
555.29,
595.802,
584.811,
1094.981,
1231.239,
614.004,
602.063,
574.8,
565.876,
641.712,
535.462,
566.822,
656.193,
1206.276,
674.436,
1809.361,
587.114,
592.904,
562.379,
604.732
]
},
"pv_akku": {
"device_id": "battery1",
"capacity_wh": 22578,
"charging_efficiency": 0.98,
"discharging_efficiency": 0.98,
"max_charge_power_w": 5000,
"initial_soc_percentage": 78,
"min_soc_percentage": 10,
"max_soc_percentage": 100
},
"inverter": {
"device_id": "inverter1",
"max_power_wh": 10000,
"battery_id": "battery1"
},
"eauto": {
"device_id": "ev1",
"capacity_wh": 27000,
"charging_efficiency": 0.9,
"discharging_efficiency": 0.95,
"max_charge_power_w": 7360,
"initial_soc_percentage": 50,
"min_soc_percentage": 5,
"max_soc_percentage": 100
},
"dishwasher": {
"device_id": "additional_load_1",
"consumption_wh": 1,
"duration_h": 1
},
"temperature_forecast": [
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15,
15
],
"start_solution": null,
"timestamp": "2025-11-20T09:04:41.465016+01:00"
}
📥 Last Optimization Response
Click to expand optimization response
{
"ac_charge": [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"dc_charge": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"discharge_allowed": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"eautocharge_hours_float": null,
"result": {
"Last_Wh_pro_Stunde": [
1873.014,
511.518,
1727.703,
3349.712,
2425.349,
2033.703,
925,
549.258,
620.95,
578.033,
639.594,
772.049,
773.887,
758.78,
702.781,
782.613,
636.893,
637.193,
610.684,
555.29,
595.802,
584.811,
1094.981,
1231.239,
614.004,
602.063,
574.8,
565.876,
641.712,
535.462,
566.822,
656.193,
1206.276,
674.436,
1809.361,
587.114,
592.904,
562.379,
604.732
],
"EAuto_SoC_pro_Stunde": [
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50,
50
],
"Einnahmen_Euro_pro_Stunde": [
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,
0.00980799999997973,
0.07853791999997609,
0.07578783719445593,
0.3835950399999593,
0.2237074607733193,
0,
0,
0,
0,
0,
0,
0,
0
],
"Gesamt_Verluste": 873.8762422072289,
"Gesamtbilanz_Euro": -0.4502499425250015,
"Gesamteinnahmen_Euro": 0.7714362579676903,
"Gesamtkosten_Euro": 0.32118631544268883,
"Home_appliance_wh_per_hour": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"Kosten_Euro_pro_Stunde": [
0,
0.01294756139130148,
0.04573192230000001,
0,
0,
0,
0.025714319999999985,
0,
0,
0,
0,
0,
0,
0,
0,
0.2332969353,
0,
0,
0,
0,
0,
0,
0,
0,
0.0034955764513873483,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"Netzbezug_Wh_pro_Stunde": [
0,
36.126008346265294,
132.90300000000002,
0,
0,
0,
69.79999999999995,
0,
0,
0,
0,
0,
0,
0,
0,
782.613,
0,
0,
0,
0,
0,
0,
0,
0,
9.369006838347222,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"Netzeinspeisung_Wh_pro_Stunde": [
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,
122.59999999974661,
981.7239999997009,
947.3479649306992,
4794.937999999491,
2796.343259666491,
0,
0,
0,
0,
0,
0,
0,
0
],
"Verluste_Pro_Stunde": [
17.11457142857148,
12.13111983307465,
0,
38.110448979591865,
21.401000000000067,
23.259244897959206,
0,
8.333836734693875,
12.672448979591877,
11.796591836734706,
13.052938775510256,
15.756102040816359,
15.793612244897986,
15.485306122448947,
14.342469387755159,
0,
12.997816326530597,
13.003938775510164,
12.462938775510224,
11.332448979591845,
12.159224489795974,
11.934918367346995,
22.346551020408242,
15.488551020408181,
44.05862662828783,
74.82711862166249,
100.00000000000516,
100.0000000000061,
95.95480070138665,
1.0281551084435197e-11,
0.2148213207544103,
4.636591836734709,
24.617877551020456,
13.76400000000001,
36.92573469387753,
11.981918367346907,
12.100081632653087,
11.477122448979571,
12.341469387755069
],
"akku_soc_pro_stunde": [
74.2099009149235,
76.8426623278948,
76.8426623278948,
68.40293139964788,
63.66358336173488,
58.51271860445806,
58.51271860445806,
56.667152846929966,
53.860781826557954,
51.248373323427764,
48.357741120506745,
44.86848121245104,
41.370914500408794,
37.94162357064332,
34.765418993675674,
34.765418993675674,
31.886993905862184,
29.00721297409006,
26.247238933982388,
23.73761696135597,
21.0449018205561,
18.40186028292058,
13.453115704036673,
10.023106176973123,
19.539198026405586,
35.77028419538141,
57.4728264931923,
79.17536879100297,
100,
100,
100,
98.97320581168955,
93.52146572155304,
90.47336580127666,
82.2959951985046,
79.64254529874665,
76.96292761058714,
74.4212670452183,
71.68819294924987
],
"Electricity_price": [
0.0003731,
0.0003584,
0.0003441,
0.0003391,
0.0003403,
0.00035,
0.0003684,
0.0003995,
0.0003991,
0.0003846,
0.0003759,
0.0003534,
0.000334,
0.000319,
0.0003018,
0.0002981,
0.0002951,
0.0002938,
0.0002936,
0.000294,
0.000298,
0.0003136,
0.0003621,
0.0003756,
0.0003731,
0.0003584,
0.0003441,
0.0003391,
0.0003403,
0.00035,
0.0003684,
0.0003995,
0.0003991,
0.0003846,
0.0003759,
0.0003534,
0.000334,
0.000319,
0.0003018
]
},
"eauto_obj": {
"device_id": "ev1",
"hours": 48,
"charge_array": [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"discharge_array": [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"discharging_efficiency": 0.95,
"capacity_wh": 27000,
"charging_efficiency": 0.9,
"max_charge_power_w": 7360,
"soc_wh": 13500,
"initial_soc_percentage": 50
},
"start_solution": [
15,
17,
18,
0,
3,
6,
20,
3,
11,
8,
3,
5,
12,
7,
11,
2,
7,
11,
11,
10,
7,
11,
9,
10,
2,
13,
8,
11,
12,
7,
9,
12,
8,
9,
13,
12,
7,
11,
10,
11,
10,
11,
8,
9,
12,
7,
7,
10,
23
],
"washingstart": 23,
"timestamp": "2025-11-20T09:04:41.465162+01:00"
}
📋 Recent Log Entries (Last 200)
Click to expand recent logs
2025-11-20T09:04:28.193272+01:00 [INFO] [Main] set user defined time zone to Europe/Berlin and loglevel to INFO
2025-11-20T09:04:28.196030+01:00 [INFO] [EOS] Getting EOS version: 0.2.0+dev.4dbc2d
2025-11-20T09:04:28.197266+01:00 [INFO] [EOS] Detected EOS version >= 0.1.0 - config optimization values OK
2025-11-20T09:04:28.198636+01:00 [INFO] [EOS] Detected EOS version >= 0.1.0 - config charge rates for electric vehicles OK
2025-11-20T09:04:28.198742+01:00 [INFO] [EOS] Configuration validation successful
2025-11-20T09:04:28.198864+01:00 [INFO] [OPT] Using EOS Server backend
2025-11-20T09:04:28.199036+01:00 [INFO] [BASE-CTRL] Update service started.
2025-11-20T09:04:28.199091+01:00 [INFO] [Inverter] Inverter type evcc - using the universal evcc external battery control.
2025-11-20T09:04:28.199456+01:00 [INFO] [MQTT] Successfully connected to MQTT broker.
2025-11-20T09:04:28.200026+01:00 [INFO] [MQTT] Connected to MQTT broker: 192.168.2.75:1883
2025-11-20T09:04:28.200089+01:00 [INFO] [MQTT] Subscribing to topic 'eos_connect/control/overall_state/set' with QoS 0
2025-11-20T09:04:28.200257+01:00 [INFO] [MQTT] Subscribing to topic 'eos_connect/control/override_remain_time/set' with QoS 0
2025-11-20T09:04:28.200317+01:00 [INFO] [MQTT] Subscribing to topic 'eos_connect/control/override_charge_power/set' with QoS 0
2025-11-20T09:04:28.200381+01:00 [INFO] [MQTT] Subscribing to topic 'eos_connect/battery/soc_min/set' with QoS 0
2025-11-20T09:04:28.200424+01:00 [INFO] [MQTT] Subscribing to topic 'eos_connect/battery/soc_max/set' with QoS 0
2025-11-20T09:04:28.200477+01:00 [INFO] [MQTT] Home Assistant Auto Discovery enabled, sending discovery messages.
2025-11-20T09:04:28.205881+01:00 [INFO] [EVCC] Successfully connected to EVCC server at http://192.168.2.78:7070. New API Version: 0.209.8
2025-11-20T09:04:28.206576+01:00 [INFO] [EVCC] Update service started.
2025-11-20T09:04:28.206829+01:00 [INFO] [BATTERY-IF] Update service started.
2025-11-20T09:04:28.206943+01:00 [INFO] [PRICE-IF] Initialized with source: tibber, feed_in_tariff_price: 0.08, negative_price_switch: False
2025-11-20T09:04:28.207563+01:00 [INFO] [PRICE-IF] Background price update service started
2025-11-20T09:04:28.207633+01:00 [ERROR] [PV-IF] Initialize - No pv entries found
2025-11-20T09:04:28.207878+01:00 [INFO] [PV-IF] Configuration validation successful
2025-11-20T09:04:28.207904+01:00 [INFO] [PV-IF] Initialized
2025-11-20T09:04:28.209155+01:00 [INFO] [PV-IF] Update service started.
2025-11-20T09:04:28.209222+01:00 [INFO] [Main] Waiting 3 seconds for interfaces to initialize
2025-11-20T09:04:28.209934+01:00 [INFO] [BATTERY-IF] Max dynamic charge power changed to 5000 W
2025-11-20T09:04:28.340062+01:00 [INFO] [PRICE-IF] Initial price update completed
2025-11-20T09:04:31.209911+01:00 [INFO] [Main] start new run
2025-11-20T09:04:31.210181+01:00 [INFO] [LOAD-IF] creating load profile for weekdays 2025-11-13 00:00:00 (Thursday) and 2025-11-14 00:00:00 (Friday)
2025-11-20T09:04:31.211488+01:00 [INFO] [OPTIMIZATION] Update service Optimization Run started.
2025-11-20T09:04:31.211648+01:00 [INFO] [OPTIMIZATION] Update service Control started.
2025-11-20T09:04:31.211890+01:00 [INFO] [OPTIMIZATION] Update service Data started.
2025-11-20T09:04:31.215404+01:00 [INFO] [Main] Initializing EOS Connect web server...
2025-11-20T09:04:31.215598+01:00 [INFO] [PortInterface] Running in Home Assistant add-on mode
2025-11-20T09:04:31.215739+01:00 [INFO] [PortInterface] Creating web server on 0.0.0.0:8081
2025-11-20T09:04:31.215997+01:00 [INFO] [Main] EOS Connect web server successfully created on 0.0.0.0:8081
2025-11-20T09:04:31.216107+01:00 [INFO] [Main] Web interface available at: http://localhost:8081
2025-11-20T09:04:31.216227+01:00 [INFO] [Main] Starting EOS Connect web server...
2025-11-20T09:04:32.019904+01:00 [INFO] [EOS] OPTIMIZE request optimization with: http://192.168.2.70:8503/optimize?start_hour=9 - and with timeout: 180
2025-11-20T09:04:41.464720+01:00 [INFO] [EOS] OPTIMIZE response retrieved successfully in 0 min 9.44 sec for current run
2025-11-20T09:04:41.465893+01:00 [INFO] [BASE-CTRL] DC charge demand changed to 5000.0 W
2025-11-20T09:04:41.466110+01:00 [INFO] [OPTIMIZATION] Gap-fill run: start 09:09:41 (quarter-aligned run follows at 09:15:00)
2025-11-20T09:04:41.466215+01:00 [INFO] [Main] Next optimization at 09:09:41 (based on average runtime of 9 seconds). Sleeping for 5 min 0 seconds
2025-11-20T09:04:42.213632+01:00 [INFO] [BASE-CTRL] Battery charge max changed to 5000.0 W
2025-11-20T09:04:42.213724+01:00 [INFO] [Main] Inverter mode set to MODE DISCHARGE ALLOWED (_____+++++_____)
2025-11-20T09:05:00.217649+01:00 [INFO] [Main] Overall state not changed recently - remaining in current state: MODE DISCHARGE ALLOWED (_____OOOOO_____)
This system data was generated automatically by EOS Connect bug reporting feature.
thanks ... "but" ;-) the log entries around the occurance are needed ...
- means:
- can you set the loglevel to debug in the config and when this error happens again
- please collect the ~100 lines around "no detailed error information available - error message: 422 Client Error: Unprocessable Content for url: http://192.168.2.70:8503/optimize?start_hour=9"
- especially the partial response and request will be shown here --- with that info there is the only chance to go deeper
-
Usually an addon restart helped, currently it doesn't anymore.
should be since 0.2.28.191 no problem anymore ... means if this failing once then it will try with the run again ... [37d8b29]
Didn't have the issue for quite a while now... seems something that's fixed whatever it was....