-
Notifications
You must be signed in to change notification settings - Fork 14
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
HTTPError at /complete/fiware/ #24
Comments
Hi @francucchi! It seems a problem on the KeyRock configuration/deployment. The stack trace is telling you that WireCloud received a 500 error (an internal server error) response from KeyRock when making the request to http://192.168.5.205:3005/oauth2/token. Please, check the logs of keyrock for more details. |
Hi @aarranz ! Environment: Request Method: GET Django Version: 1.11.18 Traceback: File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view File "/usr/local/lib/python3.6/site-packages/social_django/utils.py" in wrapper File "/usr/local/lib/python3.6/site-packages/social_django/views.py" in complete File "/usr/local/lib/python3.6/site-packages/social_core/actions.py" in do_complete File "/usr/local/lib/python3.6/site-packages/social_core/backends/base.py" in complete File "/usr/local/lib/python3.6/site-packages/social_core/utils.py" in wrapper File "/usr/local/lib/python3.6/site-packages/social_core/backends/oauth.py" in auth_complete File "/usr/local/lib/python3.6/site-packages/social_core/backends/oauth.py" in validate_state Exception Type: AuthStateMissing at /complete/fiware/ I have already implemented the workaround for: SESSION_COOKIE_NAME = "wcsessionid" but problem still appears. Any idea? Thanks again |
Hello,
I'm running dockerized images of wirecloud+nginx and keyrock (with OAuth2) and I'm having some issues probably related to gunicorn running in the wirecloud image.
Here's below the stack trace:
Environment:
Request Method: GET
Request URL: http://192.168.5.205/complete/fiware/?code=787979c8344a72a03386f1a4863e8c1a82f2851f&state=AIx9Oo103l7biQT8XOzCqNg0A0XkUrH0
Django Version: 1.11.18
Python Version: 3.6.8
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'wirecloud.commons',
'compressor',
'wirecloud.catalogue',
'wirecloud.platform',
'wirecloud.fiware',
'social_django',
'haystack',
'wirecloud_pubsub')
Installed Middleware:
('wirecloud.commons.middleware.URLMiddleware',)
Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
58. return view_func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/social_django/utils.py" in wrapper
49. return func(request, backend, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/social_django/views.py" in complete
33. *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/social_core/actions.py" in do_complete
43. user = backend.complete(user=user, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/social_core/backends/base.py" in complete
40. return self.auth_complete(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/social_core/utils.py" in wrapper
259. return func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/social_core/backends/oauth.py" in auth_complete
401. method=self.ACCESS_TOKEN_METHOD
File "/usr/local/lib/python3.6/site-packages/social_core/backends/oauth.py" in request_access_token
373. return self.get_json(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/social_core/backends/base.py" in get_json
238. return self.request(url, *args, **kwargs).json()
File "/usr/local/lib/python3.6/site-packages/social_core/backends/base.py" in request
234. response.raise_for_status()
File "/usr/local/lib/python3.6/site-packages/requests/models.py" in raise_for_status
940. raise HTTPError(http_error_msg, response=self)
Exception Type: HTTPError at /complete/fiware/
Exception Value: 500 Server Error: Internal Server Error for url: http://192.168.5.205:3005/oauth2/token
I have all the cookies:
The only clear error appearing in the info is below:
where 172.18.1.11 is internal IP address of wirecloud and 172.18.1.15 is internal IP address of nginx.
Any idea?
Thanks
The text was updated successfully, but these errors were encountered: