Open fititnt opened 6 years ago
Another screen while the first one still running
# fititnt at bravo in /alligo/code/HIIT/mydata-sdk on git:master o [20:01:46]
$ python ui_flow.py
http://localhost:8080/
http://localhost:5000/
False
582f2bf50cf2f4663ec4f020
582f2bf50cf2f4663ec4f01f
##### CREATE USER ACCOUNTS #####
NOTE: Throws an error if run for second time as you cannot create more accounts with same unique usernames. (Will be fixed in later releases.)
201 CREATED {
"data": {
"attributes": {
"acceptTermsOfService": "True",
"dateOfBirth": "2010-05-14",
"email": "example_username-37023880-902d-40e6-b83f-bca72f0e12e5@examlpe.org",
"firstName": "ExampleFirstName",
"lastName": "ExampleLastName",
"password": "example_password",
"username": "example_username-37023880-902d-40e6-b83f-bca72f0e12e5"
},
"id": "1",
"type": "Account"
},
"meta": {
"activationInstructions": "Account activated already"
}
}
http://localhost:8080/api/accounts/
{
"data": {
"attributes": {
"acceptTermsOfService": "True",
"dateOfBirth": "2010-05-14",
"email": "example_username-37023880-902d-40e6-b83f-bca72f0e12e5@examlpe.org",
"firstName": "ExampleFirstName",
"lastName": "ExampleLastName",
"password": "example_password",
"username": "example_username-37023880-902d-40e6-b83f-bca72f0e12e5"
},
"id": "1",
"type": "Account"
},
"meta": {
"activationInstructions": "Account activated already"
}
}
201 CREATED {
"data": {
"attributes": {
"acceptTermsOfService": "True",
"dateOfBirth": "2010-05-14",
"email": "iso.pasi@example.org",
"firstName": "Iso",
"lastName": "Pasi",
"password": "0nk0va",
"username": "pasi"
},
"id": "2",
"type": "Account"
},
"meta": {
"activationInstructions": "Account activated already"
}
}
http://localhost:8080/api/accounts/
{
"data": {
"attributes": {
"acceptTermsOfService": "True",
"dateOfBirth": "2010-05-14",
"email": "iso.pasi@example.org",
"firstName": "Iso",
"lastName": "Pasi",
"password": "0nk0va",
"username": "pasi"
},
"id": "2",
"type": "Account"
},
"meta": {
"activationInstructions": "Account activated already"
}
}
201 CREATED {
"data": {
"attributes": {
"acceptTermsOfService": "True",
"dateOfBirth": "2010-05-14",
"email": "dude.dudeson@example.org",
"firstName": "Dude",
"lastName": "Dudeson",
"password": "Hello",
"username": "mydata"
},
"id": "3",
"type": "Account"
},
"meta": {
"activationInstructions": "Account activated already"
}
}
http://localhost:8080/api/accounts/
{
"data": {
"attributes": {
"acceptTermsOfService": "True",
"dateOfBirth": "2010-05-14",
"email": "dude.dudeson@example.org",
"firstName": "Dude",
"lastName": "Dudeson",
"password": "Hello",
"username": "mydata"
},
"id": "3",
"type": "Account"
},
"meta": {
"activationInstructions": "Account activated already"
}
}
##### CREATE A SERVICE LINK #####
Creation of first SLR failed with status (500) reason (INTERNAL SERVER ERROR) and the following content:
{
"errors": [
{
"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": null,
"id": "13ae3866-d15d-4777-b606-a107ba5c4948"
},
{
"status": 500,
"count": 1,
"trace": [
"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"
],
"title": "SLR registration failed.",
"detail": "Something failed during creation of SLR.",
"source": "Not resolved",
"id": "aaac0066-eeec-4995-adf7-c2ad726c3a28"
}
]
}
Traceback (most recent call last):
File "ui_flow.py", line 213, in <module>
create_service_link(args.operator_url, args.sink_id)
File "ui_flow.py", line 84, in create_service_link
raise Exception("SLR flow failed.")
Exception: SLR flow failed.
Commited https://github.com/fititnt/mydata-sdk/commit/043453c2c8d164f8b55c3ba144ccc9710077d2a6.
Lets try again
humm.
Why exist another org https://github.com/mydata-sdk? And why i forked the less recent one?
I got in touch with Slack folks at https://mydataglobal.slack.com about the new org with newer updated version and kindly informed me about it and plan to look around the GitHub repositories with less updated versions.
Also, there is a lot going there on Slack, so it's a great place to get in touch with the non software developers and they have wonderful links to research related to privacy on the last decades.
On cloned repo:
Full results, screen 1