platform icon indicating copy to clipboard operation
platform copied to clipboard

Fix checkJoined exception handling

Open lexiv0re opened this issue 1 year ago • 3 comments

Replace with something like:

if (token == null) {
  return [unknownStatus('Please login'), null]
} 

try {
  const loginInfo = await getAccountClient().getLoginInfoByToken()
  if (loginInfo.token == null) {
    return [unknownStatus('Please login'), null]
  }
} catch (err: any) { 
  return [unknownStatus('Please login'), null]
}

lexiv0re avatar May 14 '25 19:05 lexiv0re

Connected to Huly®: UBERF-10587

huly-github-staging avatar May 14 '25 19:05 huly-github-staging

checkJoined no longer makes an unguarded account call. The getLoginInfoByToken() call outside the try/catch was removed in #8945, and the current implementation wraps the whole checkJoin request in try/catch and returns nothing on failure (#10507). This looks resolved, so the issue could be closed.

MichaelUray avatar Oct 17 '26 21:10 MichaelUray

@lexiv0re — based on the check described above, this looks resolved in the current code. Could you please close this issue if you agree? If you think it is not fixed yet, please describe what still goes wrong (steps, expected vs. actual behaviour), so it can be looked at again.

MichaelUray avatar Oct 20 '26 19:10 MichaelUray