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

HTTPS of https://sandbox.mydata.fi does not work and give errors on mydata-sdk #2

Open
fititnt opened this issue Apr 20, 2018 · 2 comments

Comments

@fititnt
Copy link
Owner

fititnt commented Apr 20, 2018

On #1, I cannot login, not sure if this error is or not related, but https://sandbox.mydata.fi (httpS) does not work, and http://sandbox.mydata.fi works.

operator_components       | INFO:debug:Making request GET https://sandbox.mydata.fi/registry/search/api/v1/services/582f2bf50cf2f4663ec4f020
operator_components       | ERROR:debug:HTTPSConnectionPool(host='sandbox.mydata.fi', port=443): Max retries exceeded with url: /registry/search/api/v1/services/582f2bf50cf2f4663ec4f020 (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0af8a306d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
operator_components       | Traceback (most recent call last):
operator_components       |   File "/mydata-sdk-components/Operator_Components/Templates.py", line 87, in getService
operator_components       |     req = get(self.registry_url+service_id)
operator_components       |   File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 70, in get
operator_components       |     return request('get', url, params=params, **kwargs)
operator_components       |   File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 56, in request
operator_components       |     return session.request(method=method, url=url, **kwargs)
operator_components       |   File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
operator_components       |     resp = self.send(prep, **send_kwargs)
operator_components       |   File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 596, in send
operator_components       |     r = adapter.send(request, **kwargs)
operator_components       |   File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 487, in send
operator_components       |     raise ConnectionError(e, request=request)
operator_components       | ConnectionError: HTTPSConnectionPool(host='sandbox.mydata.fi', port=443): Max retries exceeded with url: /registry/search/api/v1/services/582f2bf50cf2f4663ec4f020 (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0af8a306d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
operator_components       | {'status': 503, 'count': 0, 'trace': ['Traceback (most recent call last):', '  File "/mydata-sdk-components/Operator_Components/Operator_SLR/start.py", line 63, in get', '    service_json = self.service_registry_handler.getService(service_id)', '  File "/mydata-sdk-components/Operator_Components/Templates.py", line 93, in getService', '    raise e', "ConnectionError: HTTPSConnectionPool(host='sandbox.mydata.fi', port=443): Max retries exceeded with url: /registry/search/api/v1/services/582f2bf50cf2f4663ec4f020 (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0af8a306d0>: Failed to establish a new connection: [Errno 111] Connection refused',))"], 'title': 'Request to Service_Components Mgmnt failed due to ConnectionError.', 'detail': 'Service_Components Mgmnt might be down or unresponsive.', 'source': None, 'id': '13ae3866-d15d-4777-b606-a107ba5c4948'}
operator_components       | (['Traceback (most recent call last):', '  File "/mydata-sdk-components/Operator_Components/Operator_SLR/start.py", line 98, in get', '    trace=traceback.format_exc(limit=100).splitlines())', 'DetailedHTTPException: 503: Service Unavailable'], <type 'list'>)
operator_components       | ['Traceback (most recent call last):', '  File "/mydata-sdk-components/Operator_Components/Operator_SLR/start.py", line 98, in get', '    trace=traceback.format_exc(limit=100).splitlines())', 'DetailedHTTPException: 503: Service Unavailable']
operator_components       | {
operator_components       |   "errors": [
operator_components       |     {
operator_components       |       "status": 503, 
operator_components       |       "count": 0, 
operator_components       |       "trace": [
operator_components       |         "Traceback (most recent call last):", 
operator_components       |         "  File \"/mydata-sdk-components/Operator_Components/Operator_SLR/start.py\", line 63, in get", 
operator_components       |         "    service_json = self.service_registry_handler.getService(service_id)", 
operator_components       |         "  File \"/mydata-sdk-components/Operator_Components/Templates.py\", line 93, in getService", 
operator_components       |         "    raise e", 
operator_components       |         "ConnectionError: HTTPSConnectionPool(host='sandbox.mydata.fi', port=443): Max retries exceeded with url: /registry/search/api/v1/services/582f2bf50cf2f4663ec4f020 (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0af8a306d0>: Failed to establish a new connection: [Errno 111] Connection refused',))"
operator_components       |       ], 
operator_components       |       "title": "Request to Service_Components Mgmnt failed due to ConnectionError.", 
operator_components       |       "detail": "Service_Components Mgmnt might be down or unresponsive.", 
operator_components       |       "source": null, 
operator_components       |       "id": "13ae3866-d15d-4777-b606-a107ba5c4948"
operator_components       |     }, 
operator_components       |     {
operator_components       |       "status": 500, 
operator_components       |       "count": 1, 
operator_components       |       "trace": [
operator_components       |         "Traceback (most recent call last):", 
operator_components       |         "  File \"/mydata-sdk-components/Operator_Components/Operator_SLR/start.py\", line 98, in get", 
operator_components       |         "    trace=traceback.format_exc(limit=100).splitlines())", 
operator_components       |         "DetailedHTTPException: 503: Service Unavailable"
operator_components       |       ], 
operator_components       |       "title": "SLR registration failed.", 
operator_components       |       "detail": "Something failed during creation of SLR.", 
operator_components       |       "source": "Not resolved", 
operator_components       |       "id": "aaac0066-eeec-4995-adf7-c2ad726c3a28"
operator_components       |     }
operator_components       |   ]
operator_components       | }
@fititnt
Copy link
Owner Author

fititnt commented Apr 20, 2018

captura de tela de 2018-04-20 20-26-23

@fititnt
Copy link
Owner Author

fititnt commented Apr 20, 2018

Humm, maybe not just about https, but the URL itself. This comment give me a hint HIIT#7 (comment)

captura de tela de 2018-04-20 20-46-25

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

1 participant