Skip to content

Update rust sdk and improve script#71

Merged
langleyd merged 1 commit intomainfrom
langley/update-wasm-script
Dec 28, 2025
Merged

Update rust sdk and improve script#71
langleyd merged 1 commit intomainfrom
langley/update-wasm-script

Conversation

@langleyd
Copy link
Member

Make paths relative, downgrade uniffi, remove unneeded features

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions
Copy link

🚀 Deployed on https://pr71--element-aurora.netlify.app

@github-actions github-actions bot temporarily deployed to pull request December 28, 2025 09:40 Inactive
@langleyd langleyd merged commit 8cfb878 into main Dec 28, 2025
2 checks passed
@Thatoo
Copy link

Thatoo commented Dec 29, 2025

Wanted to try it on https://pr71--element-aurora.netlify.app/
It remains at
Loading Session...
no matter which matrix server I choose.

@langleyd
Copy link
Member Author

Hrmm I think I saw that once but it was fine after a refresh and haven't seen since. Any error in the console for you?

The navigation code around E2EE + Login flows could be improved for sure.

@Thatoo
Copy link

Thatoo commented Dec 29, 2025

Here is what I get in console trying to login to my matrix.org account in LibreWolf (didn't try an other browser though) :

OIDC login successful [index-BiNMD6bG.js:83688:226](https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js)
OIDC login failed Error: ClientError.Generic
    avatarUrl https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:61291
    startEncryptionSetup https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83711
    performLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83688
    loginWithOidcCallback https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83702
    completeOidcLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82354
    g https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82338
    loginWithOidc https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82342
    onSubmit https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:81387
    gt https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:12651
    ZL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7501
    S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7776
    Zj https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:2100
    $S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7579
    qT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9199
    Vue https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9180
    JL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7546
    VS https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7518
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7524
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7523
    createRoot https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9601
    <stdin>/< https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83923
    async*<stdin> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83928
    __require https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:5
    <anonymous> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83931
 
Object { msg: "deserialization failed: invalid type: null, expected a string at line 1 column 18", details: 'Api(Deserialization(Json(Error("invalid type: null, expected a string", line: 1, column: 18))))' }
[index-BiNMD6bG.js:68138:71](https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js)
OIDC login failed Error: ClientError.Generic
    avatarUrl https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:61291
    startEncryptionSetup https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83711
    performLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83688
    loginWithOidcCallback https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83702
    completeOidcLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82354
    g https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82338
    loginWithOidc https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82342
    onSubmit https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:81387
    gt https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:12651
    ZL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7501
    S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7776
    Zj https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:2100
    $S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7579
    qT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9199
    Vue https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9180
    JL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7546
    VS https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7518
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7524
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7523
    createRoot https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9601
    <stdin>/< https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83923
    async*<stdin> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83928
    __require https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:5
    <anonymous> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83931
[index-BiNMD6bG.js:68138:101](https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js)
App rendering with clientState: 0 [index-BiNMD6bG.js:83833:17](https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js)
OIDC callback error: Error: ClientError.Generic
    avatarUrl https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:61291
    startEncryptionSetup https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83711
    performLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83688
    loginWithOidcCallback https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83702
    completeOidcLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82354
    g https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82338
    loginWithOidc https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82342
    onSubmit https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:81387
    gt https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:12651
    ZL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7501
    S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7776
    Zj https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:2100
    $S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7579
    qT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9199
    Vue https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9180
    JL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7546
    VS https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7518
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7524
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7523
    createRoot https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9601
    <stdin>/< https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83923
    async*<stdin> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83928
    __require https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:5
    <anonymous> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83931

@Thatoo
Copy link

Thatoo commented Dec 29, 2025

In Firefox developper edition :

OIDC login successful 
[index-BiNMD6bG.js:83688:226](https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js)
OIDC login failed Error: ClientError.Generic
    avatarUrl https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:61291
    startEncryptionSetup https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83711
    performLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83688
    loginWithOidcCallback https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83702
    completeOidcLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82354
    g https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82338
    loginWithOidc https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82342
    onSubmit https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:81387
    gt https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:12651
    ZL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7501
    S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7776
    Zj https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:2100
    $S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7579
    qT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9199
    Vue https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9180
    JL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7546
    VS https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7518
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7524
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7523
    createRoot https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9601
    <stdin>/< https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83923
    async*<stdin> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83928
    __require https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:5
    <anonymous> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83931
 
Object { msg: "deserialization failed: invalid type: null, expected a string at line 1 column 18", details: 'Api(Deserialization(Json(Error("invalid type: null, expected a string", line: 1, column: 18))))' }
[index-BiNMD6bG.js:68138:71](https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js)
OIDC login failed Error: ClientError.Generic
    avatarUrl https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:61291
    startEncryptionSetup https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83711
    performLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83688
    loginWithOidcCallback https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83702
    completeOidcLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82354
    g https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82338
    loginWithOidc https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82342
    onSubmit https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:81387
    gt https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:12651
    ZL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7501
    S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7776
    Zj https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:2100
    $S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7579
    qT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9199
    Vue https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9180
    JL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7546
    VS https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7518
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7524
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7523
    createRoot https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9601
    <stdin>/< https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83923
    async*<stdin> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83928
    __require https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:5
    <anonymous> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83931
[index-BiNMD6bG.js:68138:101](https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js)
App rendering with clientState: 0 [index-BiNMD6bG.js:83833:17](https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js)
OIDC callback error: Error: ClientError.Generic
    avatarUrl https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:61291
    startEncryptionSetup https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83711
    performLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83688
    loginWithOidcCallback https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83702
    completeOidcLogin https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82354
    g https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82338
    loginWithOidc https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:82342
    onSubmit https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:81387
    gt https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:12651
    ZL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7501
    S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7776
    Zj https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:2100
    $S https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7579
    qT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9199
    Vue https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9180
    JL https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7546
    VS https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7518
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7524
    FT https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:7523
    createRoot https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:9601
    <stdin>/< https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83923
    async*<stdin> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83928
    __require https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:5
    <anonymous> https://pr71--element-aurora.netlify.app/assets/index-BiNMD6bG.js:83931

​```

@Thatoo
Copy link

Thatoo commented Dec 29, 2025

Chromium :

OIDC login successful
index-BiNMD6bG.js:68138 OIDC login failed _e2: ClientError.Generic
    at _p.avatarUrl (index-BiNMD6bG.js:61291:25)
    at VR.startEncryptionSetup (index-BiNMD6bG.js:83711:102)
    at async VR.performLogin (index-BiNMD6bG.js:83688:275)
    at async VR.loginWithOidcCallback (index-BiNMD6bG.js:83702:11)
    at async o$e.completeOidcLogin (index-BiNMD6bG.js:82354:17)
    at async g (index-BiNMD6bG.js:82338:138) {msg: 'deserialization failed: invalid type: null, expected a string at line 1 column 18', details: 'Api(Deserialization(Json(Error("invalid type: null, expected a string", line: 1, column: 18))))'}
yi @ index-BiNMD6bG.js:68138
handleLoginFailure @ index-BiNMD6bG.js:83671
performLogin @ index-BiNMD6bG.js:83691
await in performLogin
loginWithOidcCallback @ index-BiNMD6bG.js:83702
completeOidcLogin @ index-BiNMD6bG.js:82354
g @ index-BiNMD6bG.js:82338
postMessage
(anonymous) @ index-BiNMD6bG.js:81573
F0 @ index-BiNMD6bG.js:5658
RL @ index-BiNMD6bG.js:6481
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6481
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6516
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6516
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6516
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6481
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6516
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6487
KL @ index-BiNMD6bG.js:7223
(anonymous) @ index-BiNMD6bG.js:7097
Q @ index-BiNMD6bG.js:586
index-BiNMD6bG.js:68138 OIDC login failed _e2: ClientError.Generic
    at _p.avatarUrl (index-BiNMD6bG.js:61291:25)
    at VR.startEncryptionSetup (index-BiNMD6bG.js:83711:102)
    at async VR.performLogin (index-BiNMD6bG.js:83688:275)
    at async VR.loginWithOidcCallback (index-BiNMD6bG.js:83702:11)
    at async o$e.completeOidcLogin (index-BiNMD6bG.js:82354:17)
    at async g (index-BiNMD6bG.js:82338:138)
yi @ index-BiNMD6bG.js:68138
handleLoginFailure @ index-BiNMD6bG.js:83671
performLogin @ index-BiNMD6bG.js:83691
await in performLogin
loginWithOidcCallback @ index-BiNMD6bG.js:83702
completeOidcLogin @ index-BiNMD6bG.js:82354
g @ index-BiNMD6bG.js:82338
postMessage
(anonymous) @ index-BiNMD6bG.js:81573
F0 @ index-BiNMD6bG.js:5658
RL @ index-BiNMD6bG.js:6481
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6481
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6516
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6516
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6516
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6481
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6516
js @ index-BiNMD6bG.js:6473
RL @ index-BiNMD6bG.js:6487
KL @ index-BiNMD6bG.js:7223
(anonymous) @ index-BiNMD6bG.js:7097
Q @ index-BiNMD6bG.js:586
index-BiNMD6bG.js:83833 App rendering with clientState: 0
index-BiNMD6bG.js:82361 OIDC callback error: _e2: ClientError.Generic
    at _p.avatarUrl (index-BiNMD6bG.js:61291:25)
    at VR.startEncryptionSetup (index-BiNMD6bG.js:83711:102)
    at async VR.performLogin (index-BiNMD6bG.js:83688:275)
    at async VR.loginWithOidcCallback (index-BiNMD6bG.js:83702:11)
    at async o$e.completeOidcLogin (index-BiNMD6bG.js:82354:17)
    at async g (index-BiNMD6bG.js:82338:138)

all three remains at
Loading Session...
step

@langleyd
Copy link
Member Author

Should be fixed by #72

@Thatoo
Copy link

Thatoo commented Dec 29, 2025

indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants