-
Notifications
You must be signed in to change notification settings - Fork 118
Closed
Labels
Description
After setting up the project on your local machine, you will realize that, you need to be logged in before add a project or any other feature. Now as a sample, it should work like this https://release-monitoring.org/.
But on the contrary you will receive several errors, and get this message on terminal console
[anitya.app ERROR] Exception on /login/fedora/ [GET]
Traceback (most recent call last):
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/flask/app.py", line 1463, in wsgi_app
response = self.full_dispatch_request()
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/flask/app.py", line 872, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/flask/app.py", line 870, in full_dispatch_request
rv = self.dispatch_request()
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/flask/app.py", line 855, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/social_flask/utils.py", line 43, in wrapper
return func(backend, *args, **kwargs)
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/social_flask/routes.py", line 14, in auth
return do_auth(g.backend)
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/social_core/actions.py", line 29, in do_auth
return backend.start()
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/social_core/backends/base.py", line 34, in start
if self.uses_redirect():
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/social_core/backends/open_id.py", line 233, in uses_redirect
return self.openid_request().shouldSendRedirect()
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/social_core/backends/open_id.py", line 238, in openid_request
return self.consumer().begin(url_add_parameters(self.openid_url(),
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/openid/consumer/consumer.py", line 360, in begin
return self.beginWithoutDiscovery(service, anonymous)
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/openid/consumer/consumer.py", line 383, in beginWithoutDiscovery
auth_req = self.consumer.begin(service)
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/openid/consumer/consumer.py", line 611, in begin
assoc = self._getAssociation(service_endpoint)
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/openid/consumer/consumer.py", line 1184, in _getAssociation
self.store.storeAssociation(endpoint.server_url, assoc)
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/social_core/store.py", line 21, in storeAssociation
self.assoc.store(server_url, association)
File "/home/nyuydinebill/.cache/pypoetry/virtualenvs/anitya-8dx-Zgie-py3.10/lib/python3.10/site-packages/social_sqlalchemy/storage.py", line 218, in store
assoc.secret = base64.encodestring(association.secret).decode()
AttributeError: module 'base64' has no attribute 'encodestring'
Requirements
- Configure third party packages and allow local server urls
- Fix the issue regarding the error on terminal
This will enable contributors to access the project and fix the issues they are working on