bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

NAMEX_API: Error processing MRAS get-profile request #23243

Open eve-git opened 6 days ago

eve-git commented 6 days ago

Error found when retrieving MARS get-profile from NameRequest. Here is the details of the error from Darci:

_I’ve found that when I am requesting NRs in Names Request, even though I know that the home jurisdiction and registration ID that I am entering does exist in our partners’ staging (TEST) environments, I am still getting no profile found. I can of course work around that and enter in information, but it should be pulling the profile. I have two existing companies that I was testing with, and neither are pulling a get profile result in Names Request TEST: • Alberta company registration ID 2010193437 • Quebec company registration ID 1170990601

I’ve been supplied both of these by our partners, and when I search them on the MRAS staging (TEST) hub, they do show up as active, so I’m not sure why their profile isn’t being pulled by Names Request. Message in Names Request:_

image.png
eve-git commented 6 days ago

The log indicate that MRAS getProfile responded without error.

2024-09-11 08:00:44,748 - namex - DEBUG in queue_util:queue_util.py:68 - send_name_request_state_msg: Published name request (NR 2991967) state change from APPROVED -> CONSUMED
Calling MRAS Jurisdictions API using [corp_num: 2010193437]
https://stagingapi.mrasservice.ca/api/v1/xpr/jurisdictions/2010193437
{'x-api-key': '344aab81-b585-4d13-b22b-25e3c054cc88-4acb19ee-ef18-4ec9-8bad-255881f45edf', 'Accept': 'application/xml'}
Valid jurisdiction IDs
['SK', 'AB', 'QC', 'MB']

Calling MRAS Profile API using [corp_num: 2010193437], [province: AB]
https://stagingapi.mrasservice.ca/api/v1/xpr/GetProfile/2010193437/AB
{'x-api-key': '344aab81-b585-4d13-b22b-25e3c054cc88-4acb19ee-ef18-4ec9-8bad-255881f45edf', 'Accept': 'application/xml'}

Probably the error from the last step: parsing the response XML to json.

ozamani9gh commented 5 days ago

for testing, please reach out to darci to get test data

eve-git commented 4 days ago

Darci will conduct the test.

The message from Darci:

I’ve been able to successfully pull in profiles for AB, MB and QC now (temporary fix by MRAS support for now) in TEST. I would say we are good to push this to PROD any time.

Mihai-QuickSilverDev commented 4 days ago