Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RedisClient::ProtocolError: Unknown sigil type using TLS #219

Open
alexalouit opened this issue Nov 15, 2024 · 3 comments
Open

RedisClient::ProtocolError: Unknown sigil type using TLS #219

alexalouit opened this issue Nov 15, 2024 · 3 comments

Comments

@alexalouit
Copy link

alexalouit commented Nov 15, 2024

As soon as we moved to TLS connection, pub/sub client returned this stacktrace

RedisClient::ProtocolError (Unknown sigil type: "9" (rediss://..)):
redis-client (0.22.2) lib/redis_client/ruby_connection.rb:101:in `rescue in read'
redis-client (0.22.2) lib/redis_client/ruby_connection.rb:94:in `read'
redis-client (0.22.2) lib/redis_client.rb:513:in `next_event'
redis (5.3.0) lib/redis/subscribe.rb:66:in `subscription'
redis (5.3.0) lib/redis/subscribe.rb:29:in `psubscribe_with_timeout'
redis (5.3.0) lib/redis.rb:173:in `_subscription'
redis (5.3.0) lib/redis/commands/pubsub.rb:43:in `psubscribe_with_timeout'
RedisClient::ProtocolError (Unknown sigil type: "e" (rediss://..)):
RedisClient::ProtocolError (Unknown sigil type: "a" (rediss://..)):
RedisClient::ProtocolError (Unknown sigil type: "2" (rediss://..)):
RedisClient::ProtocolError (Unknown sigil type: "f" (rediss://..)):
RedisClient::ProtocolError (Unknown sigil type: "0" (rediss://..)):
RedisClient::ProtocolError (Unknown sigil type: "1" (rediss://..)):

Server is running version 7.4.0.

Any idea what's going on?

@alexalouit alexalouit changed the title "RedisClient::ProtocolError: Unknown sigil type" using TLS RedisClient::ProtocolError: Unknown sigil type using TLS Nov 15, 2024
@byroot
Copy link
Member

byroot commented Nov 15, 2024

Hard to tell with this little info, but looks like the client isn't actually connecting with SSL and is trying to parse the encrypted stream as an clear text.

@alexalouit
Copy link
Author

Which is weird is it works 99% of time.
Is there a way to enable a debug mode or something?

@byroot
Copy link
Member

byroot commented Nov 15, 2024

There's not really a debug mode, but you can fork the gem and add all the debugs you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants