Partner management partner_updated callback

Hi,

I working on partner enrollement via partner-management-service i have an issue during partner synchronisation with id-authentication using /callback/partnermanagement/partner_updated callback API.

In Id-authentication-internal-service there is no logs of /callback/partnermanagement/partner_updated but the /callback/partnermanagement/ca_certificate worked and the certifcates has been synchorized.

In addition the log in authentication-internel-service:
[sk-scheduler-10] .c.s.w.i.PartnerServiceEventsInitializer : sessionId - subscribeForAuthTypeEvents - - Subscribed to topic: PARTNER_UPD

Any idea about this issue ?

Hi,

can you please share the websub logs when the subscription API is being called from ida-internal-service ? We need to details to understand if the intent verification call was sent from websub and if there were any errors ?

1 Like

hi @vishwa thanky you for your reply,

By restarting id-authentication-internel-service i have the bellow logs in websub:

time = 2023-04-10T08:44:56.581Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/credential_issued/mpartner-default-auth”,“hubTopic”:“mpartner-default-auth/CREDENTIAL_ISSUED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:44:56.583Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “mpartner_default_auth_CREDENTIAL_ISSUED” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/credential_issued/mpartner-default-auth”
time = 2023-04-10T08:44:56.600Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/remove_id/mpartner-default-auth”,“hubTopic”:“mpartner-default-auth/REMOVE_ID”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:44:56.602Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “mpartner_default_auth_REMOVE_ID” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/remove_id/mpartner-default-auth”
time = 2023-04-10T08:44:56.611Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/deactivate_id/mpartner-default-auth”,“hubTopic”:“mpartner-default-auth/DEACTIVATE_ID”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:44:56.615Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “mpartner_default_auth_DEACTIVATE_ID” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/deactivate_id/mpartner-default-auth”
time = 2023-04-10T08:44:56.627Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/activate_id/mpartner-default-auth”,“hubTopic”:“mpartner-default-auth/ACTIVATE_ID”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:44:56.628Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “mpartner_default_auth_ACTIVATE_ID” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/activate_id/mpartner-default-auth”
time = 2023-04-10T08:46:49.178Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:5001/residentmobileapp/credentialshare/callback/notify?intentMode=subscribe”,“hubTopic”:“mpartner-default-mobile/CREDENTIAL_ISSUED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“Kslk30SNF2AChs2”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:46:49.181Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:5001/residentmobileapp/credentialshare/callback/notify?intentMode=subscribe”,“hubTopic”:“mpartner-default-mobile/CREDENTIAL_ISSUED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“Kslk30SNF2AChs2”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:01.796Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/credential_issued/mpartner-default-auth”,“hubTopic”:“mpartner-default-auth/CREDENTIAL_ISSUED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:01.798Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “mpartner_default_auth_CREDENTIAL_ISSUED” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/credential_issued/mpartner-default-auth”
time = 2023-04-10T08:47:01.806Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/remove_id/mpartner-default-auth”,“hubTopic”:“mpartner-default-auth/REMOVE_ID”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:01.809Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “mpartner_default_auth_REMOVE_ID” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/remove_id/mpartner-default-auth”
time = 2023-04-10T08:47:01.817Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/deactivate_id/mpartner-default-auth”,“hubTopic”:“mpartner-default-auth/DEACTIVATE_ID”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:01.825Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/activate_id/mpartner-default-auth”,“hubTopic”:“mpartner-default-auth/ACTIVATE_ID”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:01.817Z level = ERROR module = mosip/kafkaHub message = “Topic has already registered with the Hub” topic = “CREDENTIAL_STATUS_UPDATE”
time = 2023-04-10T08:47:01.892Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “mpartner_default_auth_ACTIVATE_ID” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/activate_id/mpartner-default-auth”
time = 2023-04-10T08:47:01.892Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “mpartner_default_auth_DEACTIVATE_ID” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/idchange/deactivate_id/mpartner-default-auth”
time = 2023-04-10T08:47:01.930Z level = ERROR module = mosip/kafkaHub message = “Topic has already registered with the Hub” topic = “AUTH_TYPE_STATUS_UPDATE_ACK”
time = 2023-04-10T08:47:01.953Z level = ERROR module = mosip/kafkaHub message = “Topic has already registered with the Hub” topic = “AUTHENTICATION_TRANSACTION_STATUS”
time = 2023-04-10T08:47:01.981Z level = ERROR module = mosip/kafkaHub message = “Topic has already registered with the Hub” topic = “IDA_FRAUD_ANALYTICS”
time = 2023-04-10T08:47:01.993Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/authTypeCallback/mpartner-default-auth”,“hubTopic”:“mpartner-default-auth/AUTH_TYPE_STATUS_UPDATE”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:01.995Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “mpartner_default_auth_AUTH_TYPE_STATUS_UPDATE” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/authTypeCallback/mpartner-default-auth”
time = 2023-04-10T08:47:02.016Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/partnermanagement/ca_certificate”,“hubTopic”:“CA_CERTIFICATE_UPLOADED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.018Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “CA_CERTIFICATE_UPLOADED” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/partnermanagement/ca_certificate”
time = 2023-04-10T08:47:02.037Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/hotlist”,“hubTopic”:“MOSIP_HOTLIST”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.039Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “MOSIP_HOTLIST” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/hotlist”
time = 2023-04-10T08:47:02.079Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/apikey_approved”,“hubTopic”:“APIKEY_APPROVED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.080Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/apikey_approved”,“hubTopic”:“APIKEY_APPROVED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.087Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/misp_license_generated”,“hubTopic”:“MISP_LICENSE_GENERATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.089Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/misp_license_generated”,“hubTopic”:“MISP_LICENSE_GENERATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.099Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/misp_license_updated”,“hubTopic”:“MISP_LICENSE_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.104Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/misp_license_updated”,“hubTopic”:“MISP_LICENSE_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.107Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/partner_updated”,“hubTopic”:“PARTNER_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.108Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/partner_updated”,“hubTopic”:“PARTNER_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.119Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/partner_api_key_updated”,“hubTopic”:“APIKEY_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.121Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/partner_api_key_updated”,“hubTopic”:“APIKEY_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.127Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/policy_updated”,“hubTopic”:“POLICY_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.132Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/policy_updated”,“hubTopic”:“POLICY_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.141Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/oidc_client_created”,“hubTopic”:“OIDC_CLIENT_CREATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.151Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/oidc_client_created”,“hubTopic”:“OIDC_CLIENT_CREATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.154Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/oidc_client_updated”,“hubTopic”:“OIDC_CLIENT_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.158Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/oidc_client_updated”,“hubTopic”:“OIDC_CLIENT_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.189Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/templates”,“hubTopic”:“MASTERDATA_IDAUTHENTICATION_TEMPLATES”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.198Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “MASTERDATA_IDAUTHENTICATION_TEMPLATES” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/templates”
time = 2023-04-10T08:47:02.205Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/titles”,“hubTopic”:“MASTERDATA_TITLES”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T08:47:02.207Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “MASTERDATA_TITLES” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/titles”
time = 2023-04-10T08:47:43.094Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T08:47:43.101Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T08:47:43.116Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T08:47:43.125Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T08:47:43.137Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T08:47:43.149Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T08:47:43.162Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T08:47:43.168Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”

{“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098//idauthentication/v1/internal/callback/partnermanagement/partner_updated”,“hubTopic”:“PARTNER_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe ”}

As per this and multiple other subscription request, I see double slash(//) in callback url after the port no. Is this intentional ?

1 Like

Hi @vishwa,

Yes there is an issue in configuration it’s fixed now, bellow the new url:
9098/idauthentication/v1/internal/callback/partnermanagement/partner_api_key_updated

I create a new partner using PMS module but there is no consumer group in PARTNER_UPDATED topic and the /partner_updated call back not yet called by websub.

Can you post the websub logs again after the config change ?

1 Like

This is the logs of the websub hub on subscribing:

time = 2023-04-10T10:27:30.378Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/apikey_approved”,“hubTopic”:“APIKEY_APPROVED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.380Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/apikey_approved”,“hubTopic”:“APIKEY_APPROVED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.403Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/misp_license_generated”,“hubTopic”:“MISP_LICENSE_GENERATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.405Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/misp_license_generated”,“hubTopic”:“MISP_LICENSE_GENERATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.412Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/misp_license_updated”,“hubTopic”:“MISP_LICENSE_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.414Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/misp_license_updated”,“hubTopic”:“MISP_LICENSE_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.426Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/partner_updated”,“hubTopic”:“PARTNER_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.428Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/partner_updated”,“hubTopic”:“PARTNER_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.443Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/partner_api_key_updated”,“hubTopic”:“APIKEY_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.444Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/partner_api_key_updated”,“hubTopic”:“APIKEY_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.453Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/policy_updated”,“hubTopic”:“POLICY_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.455Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/policy_updated”,“hubTopic”:“POLICY_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.462Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/oidc_client_created”,“hubTopic”:“OIDC_CLIENT_CREATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.464Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/oidc_client_created”,“hubTopic”:“OIDC_CLIENT_CREATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.497Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/oidc_client_updated”,“hubTopic”:“OIDC_CLIENT_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.500Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:9098/idauthentication/v1/internal/callback/partnermanagement/oidc_client_updated”,“hubTopic”:“OIDC_CLIENT_UPDATED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.523Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/templates”,“hubTopic”:“MASTERDATA_IDAUTHENTICATION_TEMPLATES”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.525Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “MASTERDATA_IDAUTHENTICATION_TEMPLATES” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/templates”
time = 2023-04-10T10:27:30.532Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/titles”,“hubTopic”:“MASTERDATA_TITLES”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.537Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “MASTERDATA_TITLES” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/titles”
time = 2023-04-10T10:28:11.395Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T10:28:11.421Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T10:28:11.432Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T10:28:11.450Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T10:28:11.460Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T10:28:11.464Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T10:28:11.476Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T10:28:11.515Z level = ERROR module = ballerina/websubhub message = “Error occurred while processing subscription” error = “Something wrong with the connection”
time = 2023-04-10T10:31:49.318Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:5001/residentmobileapp/credentialshare/callback/notify?intentMode=subscribe”,“hubTopic”:“mpartner-default-mobile/CREDENTIAL_ISSUED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“Kslk30SNF2AChs2”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:31:49.321Z level = INFO module = mosip/kafkaHub message = “Validation done before sending intent verification” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:5001/residentmobileapp/credentialshare/callback/notify?intentMode=subscribe”,“hubTopic”:“mpartner-default-mobile/CREDENTIAL_ISSUED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“Kslk30SNF2AChs2”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:33:48.075Z level = ERROR module = mosip/kafkaHub message = “Topic has already registered with the Hub” topic = “PARTNER_UPDATED”
time = 2023-04-10T10:33:49.042Z level = ERROR module = mosip/kafkaHub message = “Topic has already registered with the Hub” topic = “CA_CERTIFICATE_UPLOADED”
time = 2023-04-10T10:36:49.324Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:5001/residentmobileapp/credentialshare/callback/notify?intentMode=subscribe”,“hubTopic”:“mpartner-default-mobile/CREDENTIAL_ISSUED”,“hubLeaseSeconds”:“864000”,“hubSecret”:“Kslk30SNF2AChs2”,“hub.mode”:"subscribe”}

For the below two subscriptions, I see “Subscriber has already registered with the Hub” and it is using port 8098 and it is again ida internal service.

time = 2023-04-10T10:27:30.523Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/templates”,“hubTopic”:“MASTERDATA_IDAUTHENTICATION_TEMPLATES”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.525Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “MASTERDATA_IDAUTHENTICATION_TEMPLATES” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/templates”
time = 2023-04-10T10:27:30.532Z level = INFO module = mosip/kafkaHub message = “Subscription request received” payload = {“hub”:“http://0.0.0.0:9191/hub",“hubMode”:“subscribe”,“hubCallback”:“http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/titles”,“hubTopic”:“MASTERDATA_TITLES”,“hubLeaseSeconds”:“864000”,“hubSecret”:“3cd01a05-297a-477a-b451-691474dc3567”,“hub.mode”:"subscribe”}
time = 2023-04-10T10:27:30.537Z level = ERROR module = mosip/kafkaHub message = “Subscriber has already registered with the Hub” topic = “MASTERDATA_TITLES” callback = “http://ipmasked:8098/idauthentication/v1/internal/callback/masterdata/titles”

For others I see port number 9098 is used and those are all failing.

Why do we have multiple ports numbers getting used here ?

1 Like

Hi @vishwa,

Thank you for the help the problem fixed by changing the port.

BR

1 Like