Developing the "OCL for OpenMRS" Application

It is a 502 error.

It’s a little bit hard for me to guess what’s the request you are attempting to do, and what it should return. I literally have dozens of services I take care of, and I don’t really know any features of the projects we are building or running there.

I don’t have any knowledge of OCL application, so the full URL, when it stopped working and steps to reproduce would go a long way.

I attempted to copy whatever URL is in that print, without any authentication.

This is what I had:

/collections with error 502

~ $ curl -vvv “https://api.qa.openconceptlab.org/users/admin/collections/?q=&limit=0&page=1&verbose=true

  • Trying 149.165.157.171…
  • TCP_NODELAY set
  • Connected to api.qa.openconceptlab.org (149.165.157.171) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/cert.pem CApath: none
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):
  • TLSv1.2 (IN), TLS handshake, Server finished (14):
  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
  • TLSv1.2 (OUT), TLS change cipher, Client hello (1):
  • TLSv1.2 (OUT), TLS handshake, Finished (20):
  • TLSv1.2 (IN), TLS change cipher, Client hello (1):
  • TLSv1.2 (IN), TLS handshake, Finished (20):
  • SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: CN=narok.openmrs.org
  • start date: Nov 21 23:00:14 2018 GMT
  • expire date: Feb 19 23:00:14 2019 GMT
  • subjectAltName: host “api.qa.openconceptlab.org” matched cert’s “api.qa.openconceptlab.org
  • issuer: C=US; O=Let’s Encrypt; CN=Let’s Encrypt Authority X3
  • SSL certificate verify ok.

GET /users/admin/collections/?q=&limit=0&page=1&verbose=true HTTP/1.1 Host: api.qa.openconceptlab.org User-Agent: curl/7.54.0 Accept: /

< HTTP/1.1 502 Bad Gateway < Server: nginx/1.10.3 (Ubuntu) < Date: Sun, 16 Dec 2018 11:07:42 GMT < Content-Type: text/html < Content-Length: 182 < Connection: keep-alive <

502 Bad Gateway

502 Bad Gateway


nginx/1.10.3 (Ubuntu) * Connection #0 to host api.qa.openconceptlab.org left intact

So I saw some of the docker services were unhealthy, for some reason. After restarting the services, and the stack, it seems like it’s returning something better now.

/collections with code 200 OK

$ curl -vvv “https://api.qa.openconceptlab.org/users/admin/collections/?q=&limit=0&page=1&verbose=true

  • Trying 149.165.157.171…
  • TCP_NODELAY set
  • Connected to api.qa.openconceptlab.org (149.165.157.171) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/cert.pem CApath: none
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):
  • TLSv1.2 (IN), TLS handshake, Server finished (14):
  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
  • TLSv1.2 (OUT), TLS change cipher, Client hello (1):
  • TLSv1.2 (OUT), TLS handshake, Finished (20):
  • TLSv1.2 (IN), TLS change cipher, Client hello (1):
  • TLSv1.2 (IN), TLS handshake, Finished (20):
  • SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
  • ALPN, server accepted to use http/1.1
  • Server certificate:
  • subject: CN=narok.openmrs.org
  • start date: Nov 21 23:00:14 2018 GMT
  • expire date: Feb 19 23:00:14 2019 GMT
  • subjectAltName: host “api.qa.openconceptlab.org” matched cert’s “api.qa.openconceptlab.org
  • issuer: C=US; O=Let’s Encrypt; CN=Let’s Encrypt Authority X3
  • SSL certificate verify ok.

GET /users/admin/collections/?q=&limit=0&page=1&verbose=true HTTP/1.1 Host: api.qa.openconceptlab.org User-Agent: curl/7.54.0 Accept: /

< HTTP/1.1 200 OK < Server: nginx/1.10.3 (Ubuntu) < Date: Sun, 16 Dec 2018 11:26:13 GMT < Content-Type: application/json; charset=utf-8 < Transfer-Encoding: chunked < Connection: keep-alive < Vary: Accept, Cookie < ETag: “dc595e968e035b1530e8808e44d35b05” < Allow: GET, POST, HEAD, OPTIONS < Access-Control-Allow-Methods: GET, OPTIONS, POST, PUT, DELETE < Access-Control-Allow-Headers: authorization,DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range < Access-Control-Expose-Headers: Content-Length,Content-Range < [{“type”: “Collection”, “uuid”: “5c01365cf3aa3601a9d46646”, “id”: “WHO-testcezuso”, “short_code”: “WHO-testcezuso”, “name”: “Woreda Health Office”, “full_name”: “Woreda Health Office Collection”, “preferred_source”: “”, “repository_type”: “Collection”, “custom_resources_linked_source”: “”, “description”: “”, “external_id”: “”, “collection_type”: “Subset”, “custom_validation_schema”: “None”, “public_access”: “View”, “default_locale”: “en,es”, “supported_locales”: [“en”], “website”: “”, “url”: “/users/admin/collections/WHO-testcezuso/”, “versions_url”: “/users/admin/collections/WHO-testcezuso/versions/”, “concepts_url”: “/users/admin/collections/WHO-testcezuso/concepts/”, “mappings_url”: “/users/admin/collections/WHO-testcezuso/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 1, “created_on”: “2018-11-30T08:08:44.448”, “updated_on”: “2018-12-04T07:49:54.016”, “created_by”: “root”, “updated_by”: “root”, “extras”: null, “references”: [{“expression”: “/users/admin/sources/HSTP-Indicatorsfihca/concepts/dugjoo/5c0136e6f3aa3601a9d4665e/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/HSTP-Indicatorszibih/concepts/nehlek/5c0675f0f3aa3601a9d467b6/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/HSTP-Indicatorsmisuf/concepts/icodal/5c0677f0f3aa3601a9d467e9/”, “reference_type”: “concepts”}], “active_concepts”: 3, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c01365ff3aa3601a9d46648”, “id”: “WHO-testmohajd”, “short_code”: “WHO-testmohajd”, “name”: “Woreda Health Office”, “full_name”: “Woreda Health Office Collection”, “preferred_source”: “”, “repository_type”: “Collection”, “custom_resources_linked_source”: “”, “description”: “”, “external_id”: “”, “collection_type”: “Subset”, “custom_validation_schema”: “None”, “public_access”: “View”, “default_locale”: “en,es”, “supported_locales”: [“en”], “website”: “”, “url”: “/users/admin/collections/WHO-testmohajd/”, “versions_url”: “/users/admin/collections/WHO-testmohajd/versions/”, “concepts_url”: “/users/admin/collections/WHO-testmohajd/concepts/”, “mappings_url”: “/users/admin/collections/WHO-testmohajd/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 1, “created_on”: “2018-11-30T08:08:47.245”, “updated_on”: “2018-11-30T08:08:47.245”, “created_by”: “root”, “updated_by”: “root”, “extras”: null, “references”: , “active_concepts”: 0, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c01419df3aa3601a9d46685”, “id”: “858738987555379”, “short_code”: “858738987555379”, “name”: “CHD”, “full_name”: null, “preferred_source”: “CIEL”, “repository_type”: “OpenMRSDictionary”, “custom_resources_linked_source”: “”, “description”: “Random description.”, “external_id”: null, “collection_type”: “”, “custom_validation_schema”: null, “public_access”: “View”, “default_locale”: “en”, “supported_locales”: [“aa”], “website”: null, “url”: “/users/admin/collections/858738987555379/”, “versions_url”: “/users/admin/collections/858738987555379/versions/”, “concepts_url”: “/users/admin/collections/858738987555379/concepts/”, “mappings_url”: “/users/admin/collections/858738987555379/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 6, “created_on”: “2018-11-30T08:56:45.702”, “updated_on”: “2018-12-13T04:20:45.860”, “created_by”: “admin”, “updated_by”: “admin”, “extras”: null, “references”: [{“expression”: “/orgs/CIEL/sources/CIEL/concepts/1/5c01347ff3aa360149318368/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/7/5c01347ff3aa360149318374/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/8/5c01347ff3aa360149318376/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/10/5c01347ff3aa36014931837a/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/12/5c01347ff3aa36014931837e/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/17/5c013480f3aa360149318388/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/858738987555379/concepts/5c0aff26-bf13-48c1-bb1e-5375cce7bb22/5c05390ff3aa3601a9d4673e/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/11/5c01347ff3aa36014931837c/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/32/5c013480f3aa3601493183a6/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/37/5c013480f3aa3601493183b0/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/21/5c013480f3aa360149318390/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/858738987555379/concepts/f173b548-3307-4363-815d-a01db99b1528/5c06a13df3aa3601a9d4684c/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/858738987555379/concepts/a2df2bfe-ebde-40cd-abd4-ec180a85ad3e/5c0f8995f3aa360086b1ebc2/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/2/5c01347ff3aa36014931836a/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/858738987555379/concepts/dfd36829-71be-47bc-b5bb-18c1f255ff32/5c10ee41f3aa360086b1ec0f/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/858738987555379/concepts/b06fd083-3bd5-40b6-aa2d-113b4393a571/5c10f629f3aa360086b1ec15/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/858738987555379/concepts/997032aa-ccba-4202-834f-e71d1354628d/5c1223f7f3aa360086b1ed2d/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/858738987555379/concepts/683d53cd-d2a3-4025-93b2-2183f618dd1c/5c12246df3aa360086b1ed32/”, “reference_type”: “concepts”}], “active_concepts”: 18, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c043d0cf3aa3601a9d466be”, “id”: “3cbbf9d4-5c00-4b0d-a039-373d437ec4a3”, “short_code”: “3cbbf9d4-5c00-4b0d-a039-373d437ec4a3”, “name”: “WHO”, “full_name”: null, “preferred_source”: “CIEL”, “repository_type”: “OpenMRSDictionary”, “custom_resources_linked_source”: “”, “description”: “Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.”, “external_id”: null, “collection_type”: “”, “custom_validation_schema”: null, “public_access”: “View”, “default_locale”: “as”, “supported_locales”: [“en”], “website”: null, “url”: “/users/admin/collections/3cbbf9d4-5c00-4b0d-a039-373d437ec4a3/”, “versions_url”: “/users/admin/collections/3cbbf9d4-5c00-4b0d-a039-373d437ec4a3/versions/”, “concepts_url”: “/users/admin/collections/3cbbf9d4-5c00-4b0d-a039-373d437ec4a3/concepts/”, “mappings_url”: “/users/admin/collections/3cbbf9d4-5c00-4b0d-a039-373d437ec4a3/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 3, “created_on”: “2018-12-02T15:14:04.898”, “updated_on”: “2018-12-13T04:41:53.911”, “created_by”: “admin”, “updated_by”: “admin”, “extras”: null, “references”: [{“expression”: “/users/admin/sources/3cbbf9d4-5c00-4b0d-a039-373d437ec4a3/concepts/8888d321-0502-4033-91e2-c30b3dbe3dde/5c06efedf3aa3601a9d46850/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/1/5c01347ff3aa360149318368/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/3cbbf9d4-5c00-4b0d-a039-373d437ec4a3/concepts/6b45de28-3961-48e0-91e7-e9572fc3127a/5c0f852ef3aa360086b1ebaa/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/3cbbf9d4-5c00-4b0d-a039-373d437ec4a3/concepts/1621ae87-6532-4013-87dd-87319c403af0/5c0f877cf3aa360086b1ebb2/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/3cbbf9d4-5c00-4b0d-a039-373d437ec4a3/concepts/1065f454-e2d3-4d6e-9d42-706eb2191094/5c0f87a6f3aa360086b1ebb5/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/3cbbf9d4-5c00-4b0d-a039-373d437ec4a3/concepts/ffb39b65-abdd-4d3a-86d1-50cd2fcc5549/5c0f87ddf3aa360086b1ebbb/”, “reference_type”: “concepts”}], “active_concepts”: 6, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c0551f4f3aa3601a9d46754”, “id”: “2197623860455254”, “short_code”: “2197623860455254”, “name”: “My Community”, “full_name”: null, “preferred_source”: “CIEL”, “repository_type”: “OpenMRSDictionary”, “custom_resources_linked_source”: “”, “description”: “Community dictionary”, “external_id”: null, “collection_type”: “”, “custom_validation_schema”: null, “public_access”: “View”, “default_locale”: “en”, “supported_locales”: null, “website”: null, “url”: “/users/admin/collections/2197623860455254/”, “versions_url”: “/users/admin/collections/2197623860455254/versions/”, “concepts_url”: “/users/admin/collections/2197623860455254/concepts/”, “mappings_url”: “/users/admin/collections/2197623860455254/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 3, “created_on”: “2018-12-03T10:55:32.384”, “updated_on”: “2018-12-12T14:17:19.456”, “created_by”: “admin”, “updated_by”: “admin”, “extras”: null, “references”: [{“expression”: “/users/admin/sources/2197623860455254/concepts/c69532e1-c941-4864-a03b-2a55aafdd732/5c0a6e34f3aa3601a9d46a54/”, “reference_type”: “concepts”}, {“expression”: “/orgs/CIEL/sources/CIEL/concepts/1/5c01347ff3aa360149318368/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/2197623860455254/concepts/3d1704ce-6ace-4d45-a34d-cdd430b6ee03/5c10caa8f3aa360086b1ebe8/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/2197623860455254/concepts/3c9f0c85-9f1c-4fe2-ab54-50675503cbfc/5c115ebef3aa360086b1ecff/”, “reference_type”: “concepts”}], “active_concepts”: 4, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c067569f3aa3601a9d4679e”, “id”: “WHO-testuvajan”, “short_code”: “WHO-testuvajan”, “name”: “Woreda Health Office”, “full_name”: “Woreda Health Office Collection”, “preferred_source”: “”, “repository_type”: “Collection”, “custom_resources_linked_source”: “”, “description”: “”, “external_id”: “”, “collection_type”: “Subset”, “custom_validation_schema”: “None”, “public_access”: “View”, “default_locale”: “en,es”, “supported_locales”: [“en”], “website”: “”, “url”: “/users/admin/collections/WHO-testuvajan/”, “versions_url”: “/users/admin/collections/WHO-testuvajan/versions/”, “concepts_url”: “/users/admin/collections/WHO-testuvajan/concepts/”, “mappings_url”: “/users/admin/collections/WHO-testuvajan/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 1, “created_on”: “2018-12-04T07:39:05.094”, “updated_on”: “2018-12-04T07:39:05.094”, “created_by”: “root”, “updated_by”: “root”, “extras”: null, “references”: , “active_concepts”: 0, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c06756bf3aa3601a9d467a0”, “id”: “WHO-testcajuni”, “short_code”: “WHO-testcajuni”, “name”: “Woreda Health Office”, “full_name”: “Woreda Health Office Collection”, “preferred_source”: “”, “repository_type”: “Collection”, “custom_resources_linked_source”: “”, “description”: “”, “external_id”: “”, “collection_type”: “Subset”, “custom_validation_schema”: “None”, “public_access”: “View”, “default_locale”: “en,es”, “supported_locales”: [“en”], “website”: “”, “url”: “/users/admin/collections/WHO-testcajuni/”, “versions_url”: “/users/admin/collections/WHO-testcajuni/versions/”, “concepts_url”: “/users/admin/collections/WHO-testcajuni/concepts/”, “mappings_url”: “/users/admin/collections/WHO-testcajuni/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 1, “created_on”: “2018-12-04T07:39:07.908”, “updated_on”: “2018-12-04T07:39:07.908”, “created_by”: “root”, “updated_by”: “root”, “extras”: null, “references”: , “active_concepts”: 0, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c067768f3aa3601a9d467d1”, “id”: “WHO-testcohcic”, “short_code”: “WHO-testcohcic”, “name”: “Woreda Health Office”, “full_name”: “Woreda Health Office Collection”, “preferred_source”: “”, “repository_type”: “Collection”, “custom_resources_linked_source”: “”, “description”: “”, “external_id”: “”, “collection_type”: “Subset”, “custom_validation_schema”: “None”, “public_access”: “View”, “default_locale”: “en,es”, “supported_locales”: [“en”], “website”: “”, “url”: “/users/admin/collections/WHO-testcohcic/”, “versions_url”: “/users/admin/collections/WHO-testcohcic/versions/”, “concepts_url”: “/users/admin/collections/WHO-testcohcic/concepts/”, “mappings_url”: “/users/admin/collections/WHO-testcohcic/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 1, “created_on”: “2018-12-04T07:47:36.659”, “updated_on”: “2018-12-04T07:47:36.660”, “created_by”: “root”, “updated_by”: “root”, “extras”: null, “references”: , “active_concepts”: 0, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c06776bf3aa3601a9d467d3”, “id”: “WHO-testhocmez”, “short_code”: “WHO-testhocmez”, “name”: “Woreda Health Office”, “full_name”: “Woreda Health Office Collection”, “preferred_source”: “”, “repository_type”: “Collection”, “custom_resources_linked_source”: “”, “description”: “”, “external_id”: “”, “collection_type”: “Subset”, “custom_validation_schema”: “None”, “public_access”: “View”, “default_locale”: “en,es”, “supported_locales”: [“en”], “website”: “”, “url”: “/users/admin/collections/WHO-testhocmez/”, “versions_url”: “/users/admin/collections/WHO-testhocmez/versions/”, “concepts_url”: “/users/admin/collections/WHO-testhocmez/concepts/”, “mappings_url”: “/users/admin/collections/WHO-testhocmez/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 1, “created_on”: “2018-12-04T07:47:39.600”, “updated_on”: “2018-12-04T07:47:39.600”, “created_by”: “root”, “updated_by”: “root”, “extras”: null, “references”: , “active_concepts”: 0, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c07c5bbf3aa3601a9d46892”, “id”: “dc6597a282d9”, “short_code”: “dc6597a282d9”, “name”: “Comm”, “full_name”: null, “preferred_source”: “CIEL”, “repository_type”: “OpenMRSDictionary”, “custom_resources_linked_source”: “”, “description”: “”, “external_id”: null, “collection_type”: “”, “custom_validation_schema”: null, “public_access”: “View”, “default_locale”: “en”, “supported_locales”: null, “website”: null, “url”: “/users/admin/collections/dc6597a282d9/”, “versions_url”: “/users/admin/collections/dc6597a282d9/versions/”, “concepts_url”: “/users/admin/collections/dc6597a282d9/concepts/”, “mappings_url”: “/users/admin/collections/dc6597a282d9/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 6, “created_on”: “2018-12-05T07:34:03.104”, “updated_on”: “2018-12-10T08:56:54.634”, “created_by”: “admin”, “updated_by”: “admin”, “extras”: null, “references”: [{“expression”: “/users/admin/sources/dc6597a282d9/concepts/961bbca7-66d0-46ac-900c-a92e886eefe1/5c0e70a5f3aa360086b1eb3e/”, “reference_type”: “concepts”}], “active_concepts”: 1, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c0a5b5ef3aa3601a9d46a4b”, “id”: “b7b6ca24”, “short_code”: “b7b6ca24”, “name”: “CHM”, “full_name”: null, “preferred_source”: “CIEL”, “repository_type”: “OpenMRSDictionary”, “custom_resources_linked_source”: “”, “description”: “Lorem ipsum dolor sit amet”, “external_id”: null, “collection_type”: “”, “custom_validation_schema”: null, “public_access”: “View”, “default_locale”: “en”, “supported_locales”: null, “website”: null, “url”: “/users/admin/collections/b7b6ca24/”, “versions_url”: “/users/admin/collections/b7b6ca24/versions/”, “concepts_url”: “/users/admin/collections/b7b6ca24/concepts/”, “mappings_url”: “/users/admin/collections/b7b6ca24/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 5, “created_on”: “2018-12-07T06:37:02.600”, “updated_on”: “2018-12-12T07:37:37.391”, “created_by”: “admin”, “updated_by”: “admin”, “extras”: null, “references”: , “active_concepts”: 0, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c0e1486f3aa360086b1eae4”, “id”: “7a282d9”, “short_code”: “7a282d9”, “name”: “LHD”, “full_name”: null, “preferred_source”: “CIEL”, “repository_type”: “OpenMRSDictionary”, “custom_resources_linked_source”: “”, “description”: “”, “external_id”: null, “collection_type”: “”, “custom_validation_schema”: null, “public_access”: “View”, “default_locale”: “en”, “supported_locales”: null, “website”: null, “url”: “/users/admin/collections/7a282d9/”, “versions_url”: “/users/admin/collections/7a282d9/versions/”, “concepts_url”: “/users/admin/collections/7a282d9/concepts/”, “mappings_url”: “/users/admin/collections/7a282d9/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 32, “created_on”: “2018-12-10T02:23:50.271”, “updated_on”: “2018-12-12T04:52:06.154”, “created_by”: “admin”, “updated_by”: “admin”, “extras”: null, “references”: , “active_concepts”: 0, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c0e516bf3aa360086b1eb05”, “id”: “b7b6ca24c6597a282d9”, “short_code”: “b7b6ca24c6597a282d9”, “name”: “NEW”, “full_name”: null, “preferred_source”: “CIEL”, “repository_type”: “OpenMRSDictionary”, “custom_resources_linked_source”: “”, “description”: “”, “external_id”: null, “collection_type”: “”, “custom_validation_schema”: null, “public_access”: “View”, “default_locale”: “en”, “supported_locales”: null, “website”: null, “url”: “/users/admin/collections/b7b6ca24c6597a282d9/”, “versions_url”: “/users/admin/collections/b7b6ca24c6597a282d9/versions/”, “concepts_url”: “/users/admin/collections/b7b6ca24c6597a282d9/concepts/”, “mappings_url”: “/users/admin/collections/b7b6ca24c6597a282d9/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 2, “created_on”: “2018-12-10T06:43:39.517”, “updated_on”: “2018-12-10T06:43:39.517”, “created_by”: “admin”, “updated_by”: “admin”, “extras”: null, “references”: , “active_concepts”: 0, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c110433f3aa360086b1ec5b”, “id”: “85873898755537984y7ryfrnefj”, “short_code”: “85873898755537984y7ryfrnefj”, “name”: “grooving”, “full_name”: null, “preferred_source”: “CIEL”, “repository_type”: “OpenMRSDictionary”, “custom_resources_linked_source”: “”, “description”: “Yeah!!”, “external_id”: null, “collection_type”: “”, “custom_validation_schema”: null, “public_access”: “View”, “default_locale”: “en”, “supported_locales”: null, “website”: null, “url”: “/users/admin/collections/85873898755537984y7ryfrnefj/”, “versions_url”: “/users/admin/collections/85873898755537984y7ryfrnefj/versions/”, “concepts_url”: “/users/admin/collections/85873898755537984y7ryfrnefj/concepts/”, “mappings_url”: “/users/admin/collections/85873898755537984y7ryfrnefj/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 1, “created_on”: “2018-12-12T07:50:59.266”, “updated_on”: “2018-12-13T05:29:53.021”, “created_by”: “admin”, “updated_by”: “admin”, “extras”: null, “references”: [{“expression”: “/users/admin/sources/85873898755537984y7ryfrnefj/concepts/4b3c001a-b659-464e-805a-c920742d0fba/5c110561f3aa360086b1ec64/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/85873898755537984y7ryfrnefj/concepts/dae190f9-63f2-4b32-b4d0-0b74c4c3b81f/5c1105d7f3aa360086b1ec69/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/85873898755537984y7ryfrnefj/concepts/2053ffdc-65b1-46aa-b628-e1b6717d9170/5c110738f3aa360086b1ec6e/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/85873898755537984y7ryfrnefj/concepts/3282236e-2ced-47bc-a597-93ed24a06c87/5c1220eaf3aa360086b1ed28/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/85873898755537984y7ryf* Connection #0 to host api.qa.openconceptlab.org left intact rnefj/concepts/205fa820-4340-4ebe-96f3-8cd6ee59ae16/5c122840f3aa360086b1ed37/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/85873898755537984y7ryfrnefj/concepts/c8550dd1-036b-4330-a9d7-3d8a19cf5e9c/5c1229f4f3aa360086b1ed42/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/85873898755537984y7ryfrnefj/concepts/c686a18f-1c2f-4945-9f5c-573ff34bef2b/5c122a54f3aa360086b1ed45/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/85873898755537984y7ryfrnefj/concepts/75756a6c-6084-4fe4-9eb2-9f7c9359ad1e/5c122f93f3aa360086b1ed4a/”, “reference_type”: “concepts”}, {“expression”: “/users/admin/sources/85873898755537984y7ryfrnefj/concepts/02f0875d-158d-46e4-9653-5600080bff18/5c1234a0f3aa360086b1ed4f/”, “reference_type”: “concepts”}], “active_concepts”: 9, “active_mappings”: 0}, {“type”: “Collection”, “uuid”: “5c110d26f3aa360086b1ec76”, “id”: “12334567812321”, “short_code”: “12334567812321”, “name”: “CW”, “full_name”: null, “preferred_source”: “CIEL”, “repository_type”: “OpenMRSDictionary”, “custom_resources_linked_source”: “”, “description”: “For testing”, “external_id”: null, “collection_type”: “”, “custom_validation_schema”: null, “public_access”: “View”, “default_locale”: “en”, “supported_locales”: null, “website”: null, “url”: “/users/admin/collections/12334567812321/”, “versions_url”: “/users/admin/collections/12334567812321/versions/”, “concepts_url”: “/users/admin/collections/12334567812321/concepts/”, “mappings_url”: “/users/admin/collections/12334567812321/mappings/”, “owner”: “admin”, “owner_type”: “User”, “owner_url”: “/users/admin/”, “versions”: 1, “created_on”: “2018-12-12T08:29:10.063”, “updated_on”: “2018-12-12T11:08:30.649”, “created_by”: “admin”, “updated_by”: “admin”, “extras”: null, “references”: , “active_concepts”: 0, “active_mappings”: 0}]

I assume this is what you needed, but clearly this has no relationship with CORS at all. Please next time keep in mind I don’t know your project and give me very specific steps to follow, and the expected result.

Hello everyone, we have our demo coming up and the team just made an announcement here

CC: @darius @dkayiwa @c.antwi @ball @akanter @abulojoshua1 @collinewait @ianduncan @tittoh @desmond @stonecoder

Hello @raff, we are having CORS issues again.

CC: @darius @dkayiwa @c.antwi @ball @akanter @abulojoshua1 @collinewait @ianduncan @tittoh @desmond @stonecoder

Its actually a 502 error.

1 Like

Indeed, it’s a 502.

The same services were unhealthy. It’s not clear to me why, as I don’t know exactly how to read those logs.

I restarted the machine, to see it would make any different.

Next time it happens, let me know, and I will collect the logs and let you know what’s the error.

Hello @darius ,

I hope you are doing well.

After one of our team syncs, we discussed an issue related to editing external mappings and eventually decided to consult with you.

We would like to hear your opinion on whether for a given external mapping, the “to_source_url” should/ is editable.

For example, in the screenshot below, I recommended the “To source” field to be disabled. What’s your opinion on this?

CC: @darius @dkayiwa @c.antwi @ball @akanter @abulojoshua1 @collinewait @ianduncan @tittoh @desmond @stonecoder @shine

Thank you.

@sheriff the screenshot is not showing up here.

Taking a step back, and trying to think of things from the end-user perspective…

The user does not really care (or understand) whether something is an internal or external mapping. When the user is adding a mapping they need to specify 2 things:

  1. what is the relationship
  2. to what terminology
  3. to what code/name in that terminology

#1 should be a dropdown, since we’ll support a known set of mapping types.

I think the better UI would be that #2 works like a autosuggest, where if you choose an existing suggestion, the UI then lets you do an internal mapping. If you enter free-text instead, then you’re doing an external mapping. (For example: Ellen from PIH might want to indicate that a PIH concept is SAME-AS CIEL 5089. This is an internal mapping, because CIEL is a dictionary in OCL. She might also say that the same concept is SAME-AS SNOMED-CT 1234213213. This would be an external mapping because SNOMED-CT is not a dictionary in OCL.)

For an internal mapping, #3 would be an autocomplete of existing concepts (with no free-text allowed).

For an external mapping #3 would be free-text for code and term.

I don’t know if this kind of UI is quickly achievable or not.

To answer your specific question, “To source” is one of the 3 key questions (it’s #2) so no, it’s not okay to disable it.

(Also, you sent me a screenshot privately that seems to show a modal popup on top of another modal popup. That is a bad thing from a UX perspective.)

@darius the screenshot has been updated.

@raff,

Backend is giving 502 error :frowning:

CC: @darius @dkayiwa @c.antwi @ball @akanter @abulojoshua1 @collinewait @ianduncan @tittoh @desmond @stonecoder @shine

@cintiadr The error has shown up again. Kindly take a look.

@cintiadr, it seems like we are running out of RAM…

@raff will this be solved by demo time i.e. 6:00pm EAT

@sheriff, have you at least checked? I fixed it temporarily 2h ago. I need @cintiadr, who is on the other side of the globe to see, if we can assign the qa environment a stronger machine…

@raff I have checked and the error is still there.

@sheriff, works for me. Where do you see the error? Please provide request details (url, params, etc.) to reproduce.

@raff it is now working. I have just learnt that I had to login into the application again.

Hello OpenMRS community,

It’s almost time to our Sprint 12 demo. Here is our link to the call; https://hangouts.google.com/hangouts/_/ieh3gfmwzncw5bxjjgimum7aqqe

CC: @darius @dkayiwa @c.antwi @ball @akanter @abulojoshua1 @collinewait @ianduncan @tittoh @desmond @stonecoder @shine

Is any one receiving “This video call is full” error message?