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
Hi, so I am receiving highfrequency financial data through a websocket and have been using TDengine to store it in a database. I use in my Cargo.toml file:
taos = { version = "0.12.3",default-features = false, features = ["ws-native-tls"]}
and I only insert the data into an existing table:
This worked perfectly fine until today, where after running the code for ~20min I got the following error:
This refers to the following code inside the read_queries function (of the asyn.rs file):
let v:WsRecv = serde_json::from_slice(&payload).unwrap();
When I did some further digging I think it refers to trying to asign the ReqId (which is of type u64) inside the WsRecv struct (see taos-ws/src/query/infra.rs), -51928, which explains the error message I got. However the question remains, why did this happen? Why was the payload in a wrong format?
My problem is that for now, I have not been able to reproduce the error. I tried inputting invalid values into my table (for example a negative integer when the column is of type unsigned integer, but this gave different errors, meaning that the input should not be the problem. Furthermore, I ran my code again and now it worked for an hour straight.
Edit:
Today the error happened again (after running my code for ~8 hours straight):
The text was updated successfully, but these errors were encountered:
Hi, so I am receiving highfrequency financial data through a websocket and have been using TDengine to store it in a database. I use in my Cargo.toml file:
and I only insert the data into an existing table:
This worked perfectly fine until today, where after running the code for ~20min I got the following error:
This refers to the following code inside the read_queries function (of the asyn.rs file):
When I did some further digging I think it refers to trying to asign the ReqId (which is of type u64) inside the WsRecv struct (see taos-ws/src/query/infra.rs), -51928, which explains the error message I got. However the question remains, why did this happen? Why was the payload in a wrong format?
My problem is that for now, I have not been able to reproduce the error. I tried inputting invalid values into my table (for example a negative integer when the column is of type unsigned integer, but this gave different errors, meaning that the input should not be the problem. Furthermore, I ran my code again and now it worked for an hour straight.
Edit:
Today the error happened again (after running my code for ~8 hours straight):
The text was updated successfully, but these errors were encountered: