Open nkongsuwan opened 3 weeks ago
I noticed another issue that may be related. When I created a new account, generate a passcode, and paste it on the "Confirm your passcode" box, I encounter An error has occurred, please try again later.
The error of the Chrome dev tool is below.
CognitoUserPool.js:1 [zustand devtools middleware] Please install/enable Redux devtools extension
(anonymous) @ CognitoUserPool.js:1
Show 1 more frame
Show less
/v1/user-mgmt/auth/onboard:1
Failed to load resource: the server responded with a status of 400 ()
/v1/keria/admin/identifiers:1
Failed to load resource: the server responded with a status of 400 ()
CognitoUserPool.js:1 INIT_CLIENT_ERROR::: Error: HTTP POST /identifiers - 400 - {"title": "400 Bad Request", "description": "unknown witness BG6aVhGdmp-XtyvWE566MxTwAca3877ru0ni1TgBTv7c"}
(anonymous) @ CognitoUserPool.js:1
Show 1 more frame
Show less
/v1/keria/admin/identifiers/-as-user-at-origin:1
Failed to load resource: the server responded with a status of 404 ()
/v1/keria/admin/identifiers/-as-user-at-origin/oobis?role=agent:1
Failed to load resource: the server responded with a status of 404 ()
[from twin in jira] This issue is being tracked in jira at https://eipi.atlassian.net/browse/DF-2566. To send new comments there, start them with 'Tell jira:'. The issue is assigned in jira to Cal Warshaw. As of 2024-11-04T07:23Z, the status of the issue in jira is 'to do'.
[from twin in jira] The issue is assigned in jira to Arshdeep Singh. At 2024-11-05T09:02Z, Daniel Hardman said: Arsh has observed an interesting event in the logs that is almost certainly related to the root cause. He is investigating.
[from twin in jira] As of 2024-11-05T16:51Z, the status of the issue in jira is 'doing'. At 2024-11-05T16:51Z, Arshdeep Singh said: This issue is occurring for these accounts because there is a {{dot}} in the org name, for example, {{enauthn.id}}, {{enauthn.dev}} The reason is that registry records stored in the {{regs}} table are keyed by the Registry Name like for the first account, one of the keys is {{enauthn.id-as-qvi-reg}}. The {{regs}} table is of type {{Komer}}, and in this type, the {{dot}} is used as a separator for combining a tuple of string keys into key bytes. When retrieving values from the database, the keys tuple is separated by splitting at this separator. Therefore, the db key for {{enauthn.id-as-qvi-reg}} becomes {{('enauthn', 'id-as-qvi-reg')}}. This causes an exception with the error {{ValueError: too many values to unpack (expected 1)}}.
We should avoid using {{dot}} in the org name or in the user’s first and last names. We will also add a validation check during onboarding to prevent the use of {{dot}} in names.
Tell Jira: @Arsh-Sandhu the error also occurs if either name or surname has a {{dot}}.
EDIT: I changed this issue to non-critical since the cause has been identified, and there is a simple way to avoid the issue. In summary, the input to a account registration including the name, surname, and organization name must be checked or sanitized before the account is created.
==================================== Describe the bug Multiple accounts in Origin Asia that I have created and tested became unable to connect to their agents. As a result, these accounts are locked out completely.
I believe this is related to the update on 4th October to clear the databases in Origin Asia since I had never seen this kind of error before the update.
I could not figure out the cause of these errors as they seem to appear at random. @dhh1128 hypothesized that this error occurs when too many browser windows (6 windows) are opened simultaneously. It turns out not to be the case since the same error still occurs to more of my newly created accounts even though I wasn't using them.
Here are the list of affected accounts:
*** Edit: Now all accounts that I have created are affected.
To Reproduce Unknown
Expected behavior The accounts should be able to connect to KERIA agents
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Error messages from Chrome Dev Tool