@thamarai_kannan Thank you for this.
After adding the variables url and protocol and editing the secretkeys I managed to run the collection almost successfully.
I still encountered some errors. What should be the correct partnerType ? In the collection uploaded it is RELYING_PARTY. I tried changing it with Auth_Partner but it is also not the correct value.
EDIT - I re-encoded RELYING_PARTY as partnerType because I saw that it didn’t produce an error when I run the Collection again as downloaded, although without any edits to the collection produces 108 errors.
So I edited the collection again to input variables, secretKey(s), user with PARTNERMANAGER role and password to reflect values in our MOSIP platform.
After doing this, there are only 22 errors, 4 tests passed, 6 tests failed which is an improvement with the previous run of 105 errors.
The first one of this error is the following
GET https://api-internal.mymosip.edu.ph/v1/keymanager/getCertificate?applicationId=ROOT: {
“Network”: {
“addresses”: {
“local”: {
“address”: “10.207.102.5”,
“family”: “IPv4”,
“port”: 56480
},
“remote”: {
“address”: “10.206.100.170”,
“family”: “IPv4”,
“port”: 443
}
},
“tls”: {
“reused”: false,
“authorized”: true,
“authorizationError”: null,
“cipher”: {
“name”: “ECDHE-RSA-AES128-GCM-SHA256”,
“standardName”: “TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256”,
“version”: “TLSv1/SSLv3”
},
“protocol”: “TLSv1.2”,
“ephemeralKeyInfo”: {},
“peerCertificate”: {
“subject”: {
“commonName”: “mymosip.edu.ph”,
“alternativeNames”: “DNS:.mymosip.edu.ph, DNS:mymosip.edu.ph"
},
“issuer”: {
“country”: “US”,
“organization”: “Let’s Encrypt”,
“commonName”: “R3”
},
“validFrom”: “Oct 26 06:25:29 2023 GMT”,
“validTo”: “Jan 24 06:25:28 2024 GMT”,
“fingerprint”: “3F:8E:A3:53:CA:90:27:9A:42:1D:7E:03:EA:5C:A2:2C:3B:6C:59:F0”,
“serialNumber”: “0439a0e83b7be954a2f67f81b35bdd246ec1”
}
}
},
“Request Headers”: {
“user-agent”: “PostmanRuntime/7.34.0”,
“accept”: "/*”,
“cache-control”: “no-cache”,
“postman-token”: “b69095aa-614b-48ea-8e49-4ed683304c1a”,
“host”: “api-internal.mymosip.edu.ph”,
“accept-encoding”: “gzip, deflate, br”,
“connection”: “keep-alive”,
“cookie”: “Authorization=eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJqc05CR01jeUh2cWJEeExnMjluRV9pMWZRc2plUlFlalpaYlJKd3FfdHE4In0.eyJleHAiOjE2OTkzNzk4MDksImlhdCI6MTY5OTM0MzgwOSwianRpIjoiZGY1MGQ4NzUtOTliMi00YzQ2LTkzNzEtNDVkNmE4NzhkMDgwIiwiaXNzIjoiaHR0cHM6Ly9pYW0uZGNzbW9zaXAuc2NpZW5jZS51cGQuZWR1LnBoL2F1dGgvcmVhbG1zL21vc2lwIiwiYXVkIjoiYWNjb3VudCIsInN1YiI6ImQwNzkzNzYzLWI5YzgtNDNiNS05M2QwLWNjNmZhYjNhNjkyMyIsInR5cCI6IkJlYXJlciIsImF6cCI6Im1vc2lwLWFkbWluLWNsaWVudCIsInNlc3Npb25fc3RhdGUiOiJhMGRiZmE0Zi04NzQzLTQ0MTYtOGFlNC1kNWY3NDQwMWNjNTYiLCJhY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlBNU19BRE1JTiIsIkFVVEgiLCJvZmZsaW5lX2FjY2VzcyIsIlBBUlRORVJNQU5BR0VSIiwiUEFSVE5FUl9BRE1JTiIsIlBPTElDWU1BTkFHRVIiLCJ1bWFfYXV0aG9yaXphdGlvbiIsImRlZmF1bHQtcm9sZXMtbW9zaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6ImVtYWlsIHByb2ZpbGUiLCJzaWQiOiJhMGRiZmE0Zi04NzQzLTQ0MTYtOGFlNC1kNWY3NDQwMWNjNTYiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsIm5hbWUiOiJSYW1vbiBTYW1wYW5nIiwicHJlZmVycmVkX3VzZXJuYW1lIjoicmNzYW1wYW5nIiwiZ2l2ZW5fbmFtZSI6IlJhbW9uIiwiZmFtaWx5X25hbWUiOiJTYW1wYW5nIiwiZW1haWwiOiJyY3NhbXBhbmdAeWFob28uY29tIn0.lQeXU7Zuz7U80VSkqZ-vpACPady_twjGHzWwqhHT_hfTjTXWh7JiY6eZfHpt7C6GTlZqRPt-WtaeE7oKOMpdI5bnG0rrvJMS4jCknlGVEtFae7njWrD78J1IaV6D_NclDoaC2HR9tYWJVrADjulPbYYU54ecwC0Mg_OxDMG_2PuTCPeNwyRKUql2eCnycOmyY2qX-xji1D79TXxeQGAY_L56xxKu_SRaRtUKxfOS5qGNtBRx6rRjPGt7OCiNGp-oa5toLXEGafOFUDknXJ0CzkV8nAZU9uPURB6RHJRycOUg2JaI5_iUZldua6ngtXIYZEmtBO5-VzkZoLBzyDOIPQ”
},
“Response Headers”: {
“server”: “nginx/1.18.0 (Ubuntu)”,
“date”: “Tue, 07 Nov 2023 07:56:50 GMT”,
“content-type”: “application/json;charset=UTF-8”,
“content-length”: “161”,
“connection”: “keep-alive”,
“x-content-type-options”: “nosniff”,
“x-xss-protection”: “1; mode=block”,
“cache-control”: “no-cache, no-store, max-age=0, must-revalidate”,
“pragma”: “no-cache”,
“expires”: “0”,
“x-frame-options”: “SAMEORIGIN”,
“x-envoy-upstream-service-time”: “5”
},
“Response Body”: “{"id":null,"version":null,"responsetime":"2023-11-07T07:56:50.866Z","metadata":null,"response":null,"errors":[{"errorCode":"KER-ATH-403","message":"Forbidden"}]}”
}
TypeError: Cannot read properties of null (reading ‘certificate’)
Any help on how to fix this error?
The rest of the errors I think is caused by the first one.
NOTE http://create 551 in keycloak as a user and assign role auth_partner/: {
“Error”: “getaddrinfo ENOTFOUND create 551 in keycloak as a user and assign role auth_partner”,
“Request Headers”: {
“user-agent”: “PostmanRuntime/7.34.0”,
“accept”: “/”,
“cache-control”: “no-cache”,
“postman-token”: “1e181a1b-443a-4b9b-ad98-f52b952c5db7”,
“host”: “create 551 in keycloak as a user and assign role auth_partner”,
“accept-encoding”: “gzip, deflate, br”,
“connection”: “keep-alive”
}
}
TypeError: Cannot read properties of null (reading ‘certificate’)
TypeError: Cannot read properties of null (reading ‘certificate’)
TypeError: Cannot read properties of null (reading ‘signedCertificateData’)
TypeError: Cannot read properties of null (reading ‘signedCertificateData’)
TypeError: Cannot read properties of null (reading ‘certificate’)
TypeError: Cannot read properties of null (reading ‘certificate’)
TypeError: Cannot read properties of null (reading ‘signedCertificateData’)
TypeError: Cannot read properties of null (reading ‘certificate’)
TypeError: Cannot read properties of null (reading ‘certificate’)
TypeError: Cannot read properties of null (reading ‘signedCertificateData’)
JSONError: Unexpected token ‘<’ at 1:1
<!doctype html>HTTP Status 400 – Bad Request</titl
^
TypeError: Cannot read properties of null (reading ‘identity’)
JSONError: Unexpected token ‘<’ at 1:1
<!doctype html>HTTP Status 400 – Bad Request</titl
^
JSONError: Unexpected token ‘<’ at 1:1
<!doctype html>HTTP Status 400 – Bad Request</titl
^
TypeError: Cannot read properties of null (reading ‘documents’)
TypeError: Cannot read properties of undefined (reading ‘BIR’)
JSONError: Unexpected token ‘<’ at 1:1
<!doctype html>HTTP Status 400 – Bad Request</titl
^
JSONError: Unexpected token ‘<’ at 1:1
<!doctype html>HTTP Status 400 – Bad Request</titl
^
TypeError: Cannot read properties of null (reading ‘vid’)
TypeError: Cannot read properties of null (reading ‘requestId’)