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

Exceptions raised because of base_color #43

Open
atopheim opened this issue Mar 14, 2024 · 5 comments
Open

Exceptions raised because of base_color #43

atopheim opened this issue Mar 14, 2024 · 5 comments

Comments

@atopheim
Copy link
Contributor

atopheim commented Mar 14, 2024

./logs/app.log:7939:[2024-03-14 09:50:51] DEBUG [django.template._resolve_lookup:925] Exception while resolving variable 'base_color' in template 'socialaccount/login.html'.
./logs/app.log:7946:KeyError: 'base_color'
./logs/app.log:7954:AttributeError: type object 'RequestContext' has no attribute 'base_color'
./logs/app.log:7962:ValueError: invalid literal for int() with base 10: 'base_color'
./logs/app.log:7969:django.template.base.VariableDoesNotExist: Failed lookup for key [base_color] in [{'True': True, 'False': False, 'None': None}, {'csrf_token': <SimpleLazyObject: 'abc123'>, 'request': <ASGIRequest: GET '/accounts/google/login/?process=login&next=%2Fsign-up-proxy%2F'>, 'user': <SimpleLazyObject: <function AuthenticationMiddleware.process_request.<locals>.<lambda> at 0x>>, 'perms': PermWrapper(<SimpleLazyObject: <function AuthenticationMiddleware.process_request.<locals>.<lambda> at 0x>>), 'messages': <FallbackStorage: request=<ASGIRequest: GET '/accounts/google/login/?process=login&next=%2Fsign-up-proxy%2F'>>, 'DEFAULT_MESSAGE_LEVELS': {'DEBUG': 10, 'INFO': 20, 'SUCCESS': 25, 'WARNING': 30, 'ERROR': 40}}, {}, {'provider': <allauth.socialaccount.providers.google.provider.GoogleProvider object at 0x>, 'process': 'login'}, {'block': <Block Node: content. Contents: [<TextNode: '\n    <div class="flex fle'>, <Block Node: whitebox. Contents: [<TextNode: '\n        '>]>, <TextNode: '\n    </div>\n  </div>\n    '>]>}, {'block': <Block Node: whitebox. Contents: [<TextNode: '\n<div class="flex items-c'>, <IfNode>, <TextNode: '\n  </p>\n</div>\n<form meth'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f8e2dc6f990>, <TextNode: '\n  '>, <IncludeNode: template=<FilterExpression '"account/_button.html"'>>, <TextNode: '\n</form>\n'>]>}, {'text': 'Continue'}]

Seems like there is a "with base_color" in account/_button that might be the culprit, but I don't see why it won't just default to bg-blue if it's not found.

Should I set the base_color, if so how?

Feels like I'm missing something and this should be a quick one, @danihodovic.

@danihodovic
Copy link
Owner

What page is this happening on?

@atopheim
Copy link
Contributor Author

I get it when attempting to sign up using google third party sign-in.

@danihodovic
Copy link
Owner

I can have a look at this next month as I'm currently busy with work. If you figure it out open a PR

@atopheim
Copy link
Contributor Author

I see, and that is totally understood.
If it's a non-obvious error I will investigate further and open a PR if I find something of course 👍

@danihodovic
Copy link
Owner

It's not a big code base. If you can navigate allauth this is a piece of cake. If I find it in the meantime I will update you.

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