You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was interacting with a Knauer Valve using the ComponentClient and trying to send a list (e.g., [[4, 0]]) as a parameter to a FastAPI endpoint. The issue arises because requests encodes the list in a format that FastAPI is not able to handle correctly.
I was interacting with a Knauer Valve using the ComponentClient and trying to send a list (e.g., [[4, 0]]) as a parameter to a FastAPI endpoint. The issue arises because requests encodes the list in a format that FastAPI is not able to handle correctly.
Knauer Valve 16 position, toml file:
[device.test]
mac_address = "00:80:A3:CE:7E:CB"
network = "141.14.."
The failure occurs because FastAPI does not correctly parse this complex data format in query parameters by default.
The proposed solution is to inspect the params argument before making the request and, if necessary, serialize the list into a string manually.
The text was updated successfully, but these errors were encountered: