niida
niida3d ago

can't save WSS trigger URL, too long.

1. URI-based authentication works, but URI is too long to save configuration to database When I try to save Static URL with wss://ws.axis.prioris.jp/socket?token=<TOKEN>
SqlErr: error returned from database: value too long for type character varying(255) @websocket_triggers.rs:267:5
SqlErr: error returned from database: value too long for type character varying(255) @websocket_triggers.rs:267:5
the token length was 305 --- 2. is there a correct format for initial message? static Url used: wss://ws.axis.prioris.jp/socket initial message I tried:
{
"headers": {
"Authorization": "Bearer <JWT_TOKEN>"
}
}
{
"headers": {
"Authorization": "Bearer <JWT_TOKEN>"
}
}
The third party hosting the websocket server had an example client implementation with node.js. It was using the above json so I thought it would work. I tried some other formats, but none worked... I just started trying out Windmill today with docker and was loving the flexibility and feature set unlike others, appreciate your work!
2 Replies
rubenf
rubenf3d ago
👍 @dieriba_ we can make it 1000 long without issue and migration is instant for alter type varchar, wanna do it?
dieriba_
dieriba_3d ago
on it

Did you find this page helpful?