-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Redash can't create user from Google with long profile_image_url #4469
Comments
Ran across this issue as well today. User uploaded the same picture again, and was given a smaller URL which worked. Can we get the schema updated to allow for extra length in this field? |
Let's move this to the |
Another interim quick solution to allow creating the user is to check the length of the URL before assigning it (and assign null if it's too long). |
This is what I did (as a workaround) to address it (My redash is in docker): docker exec redash_postgres_1 su postgres -c "psql -d postgres -c 'alter table users add column profile_image_url_new varchar null'"
docker exec redash_postgres_1 su postgres -c "psql -d postgres -c 'update users set profile_image_url_new=profile_image_url'"
docker exec redash_postgres_1 su postgres -c "psql -d postgres -c 'alter table users drop column profile_image_url'"
docker exec redash_postgres_1 su postgres -c "psql -d postgres -c 'alter table users rename column profile_image_url_new to profile_image_url'" |
If this is necessary through the long-term it would be best to write an alembic migration for it. |
Makes the details field a JSONB field per pg doc recommendations. Update model.all() method to work properly now that profile_image_url is not an independent field. Closes #4469
Makes the details field a JSONB field per pg doc recommendations. Update model.all() method to work properly now that profile_image_url is not an independent field. Closes #4469
👋 just ran across this issue too. Any idea when a new version will be released containing this fix? |
I'm looking to cut a new release this summer yet. |
how about?
|
@odinsy That's a reasonable short-term solution 👍 |
Redash can't create user with long profile_image_url
My coworker tried to login to redash and it failed.
Turns out, he had basic auto-generated one letter avatar (more info) for which Google returns profile_image_url 815 characters long. Maybe they generate it on the fly, who knows. We changed this auto-generated avatar to a normal one and it succeeded.
Steps to Reproduce
Technical details:
The text was updated successfully, but these errors were encountered: