Why I met the error 'called Result::unwrap() on an Err value: Error { kind: ToSql(2), cause: Some(WrongType { postgres: Json, rust: "core::option::Option<alloc::string::String>" }) }' when I sent 'POST /v1/conversations' request
#15816
tianzhiqiang3
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
python3 -m sglang_router.launch_router --service-discovery --policy random --service-discovery-port 30000 --selector storm-service-name=ds-distill-qwen3-8b-s5ahrc --service-discovery-namespace model-evaluate --history-backend postgres --postgres-db-url postgres://postgres:******@172.31.0.181:5432/sglang-router --host 0.0.0.0 --port 8080curl -X POST "http://172.30.3.79:8080/v1/conversations" -H "Content-Type: application/json" --data '{"metadata":{"foo":"bar"}}', I gotEmpty reply from server. And I check the logs of sglang-router, I got this errorSomething strange is, after I update the type of field metadata of conversations table from 'json' to 'text', the curl command executed successfully and data was inserted.
So why I met this issue? Is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions