Closed felipemm closed 4 months ago
Hey @felipemm , I'm having a tough time tracking down what value would cause this error.
I was able to reproduce this by providing only special characters as a password. Does that sound about like what you're doing?
Hi @boonhapus, password is only letters. Perhaps this has something to do with the username? cause I am using my email (with @)
just tested with another user, no good. Maybe something related to python/lib version? Which version you're testing with?
I tried to recreate it with the same architecture you have @felipemm
│ Python Version: Python 3.10.8 (main, Dec 8 2022, 10:52:18) [Clang 14.0.0 (clang-1400.0.29.202)] │
│ System Info: Darwin (detail: macOS-12.7.1-x86_64-i386-64bit) │
A username with an @ should be no problem, this is actually how my own config is set up.
It's possible that I've accidentally fixed this in 1.5.2 (this is the only difference between our setups.. and of course I don't have your password) , which I should be releasing before Monday. 😅
I upgrade to the 1.5.2 beta release, same error.
@felipemm can you shoot me an email? Let's schedule some live time to look into this if you don't mind.
nicholas.cooper@thoughtspot.com
@boonhapus sure let's do it. FYI I thought this was something on my environment, I used another windows machine with python 3.10.4, same error
odd. when limiting the size of password to 7 or less characters it works (it fails to connect, but do not generate exceptions)
changed to 7 char the password and it worked. Weird
Thanks for investigating @felipemm !
😩 It's probably something with base64 encoding that I'm not understanding. I'm not sure why we're just now seeing this issue, but a couple customers reported it. It's been the same implementation for years now, hah.
Can you share some examples of the fake passwords values that worked or didn't work?
Actually, I think I'm able to pin this down. I have no idea why it's suddenly causing us issues now..... but at least I know how to fix it.
@felipemm can you try bootstrapping again, and then try the password?
curl -sSL https://raw.githubusercontent.com/thoughtspot/cs_tools/master/cs_tools/updater/_bootstrapper.py | python3 - --reinstall
you nailed it! it is working now. What was the problem?
For some reason, we're just now reaching this error. I'm actually not sure exactly why though @felipemm , but I am catching the new zlib error and handling it appropriately.
First Stop
Platform Configuration
│ │ │ Info snapshot taken on 2024-04-12 │ │ │ │ CS Tools: 1.5.1 │ │ Python Version: Python 3.10.8 (main, Dec 8 2022, 10:52:18) [Clang 14.0.0 (clang-1400.0.29.202)] │ │ System Info: Darwin (detail: macOS-12.7.1-x86_64-i386-64bit) │ │ Configs Directory: /Users/ {anonymous} /Library/Application Support/cs_tools │ │ Activate VirtualEnv: source "/Users/ {anonymous} /Library/Application Support/cs_tools/.cs_tools/bin/activate" │ │ Platform Tags: macosx-12.6-x86_64 │ │
Description
cs_tools config create --config test --url test.thoughtspot.cloud --username teste@test.com --password test123 --verbose
gives the following error: