You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I notice a different behaviour between a normal compilation and a compilation with the --profile=release flag for handling rejections in promises. I haven't really managed to isolate the problem so I'm sorry for the limited information I can provide. This is always the case when developing an application that interacts with the Tezos chain. Here's the difference between "normal" compilation (in development) and compilation with the --profile=release flag:
compiling without --profile=release
Here the application is launched in dev mode, the bundle is ~16mb
I can click on syncrhonize Wallet
After some step connecting through the wallet, everything is fine:
(And the application works)
compiling with --profile=release
Here the application is launched in release mode, the bundle is ~1.20mb
I have the same first screen (which is an huge progress since the new patches)
And I follow the instruction like in "dev" mode, but when I select my wallet, I face to :
So the error is a Promise rejection, which does not appear in "dev" mode. Here is the stack:
18:58:26.784 request-permissions-rejection, Nightmare_js__Promise.Promise_rejection(_) capsule_client.bc.js:9868:329
dB http://localhost:8888/js/capsule_client.bc.js:9868
h http://localhost:8888/js/capsule_client.bc.js:7715
c_ http://localhost:8888/js/capsule_client.bc.js:9868
n http://localhost:8888/js/capsule_client.bc.js:12493
h http://localhost:8888/js/capsule_client.bc.js:7715
f http://localhost:8888/js/capsule_client.bc.js:9735
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
po http://localhost:8888/js/capsule_client.bc.js:9717
f http://localhost:8888/js/capsule_client.bc.js:9724
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
po http://localhost:8888/js/capsule_client.bc.js:9717
f http://localhost:8888/js/capsule_client.bc.js:9724
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
po http://localhost:8888/js/capsule_client.bc.js:9717
g http://localhost:8888/js/capsule_client.bc.js:9755
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
f http://localhost:8888/js/capsule_client.bc.js:9733
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
pk http://localhost:8888/js/capsule_client.bc.js:9705
d7 http://localhost:8888/js/capsule_client.bc.js:9847
e http://localhost:8888/js/capsule_client.bc.js:7362
(Async: promise callback)
aFi http://localhost:8888/js/capsule_client.bc.js:7363
d7 http://localhost:8888/js/capsule_client.bc.js:9847
m http://localhost:8888/js/capsule_client.bc.js:12499
h http://localhost:8888/js/capsule_client.bc.js:7715
kl http://localhost:8888/js/capsule_client.bc.js:9747
e http://localhost:8888/js/capsule_client.bc.js:12499
h http://localhost:8888/js/capsule_client.bc.js:7715
f http://localhost:8888/js/capsule_client.bc.js:9722
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
f http://localhost:8888/js/capsule_client.bc.js:9737
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
pk http://localhost:8888/js/capsule_client.bc.js:9705
d http://localhost:8888/js/capsule_client.bc.js:9847
f http://localhost:8888/js/capsule_client.bc.js:7361
(Async: promise callback)
aFi http://localhost:8888/js/capsule_client.bc.js:7363
d7 http://localhost:8888/js/capsule_client.bc.js:9847
J http://localhost:8888/js/capsule_client.bc.js:12502
h http://localhost:8888/js/capsule_client.bc.js:7715
hK http://localhost:8888/js/capsule_client.bc.js:9768
J http://localhost:8888/js/capsule_client.bc.js:12483
o http://localhost:8888/js/capsule_client.bc.js:7716
lx http://localhost:8888/js/capsule_client.bc.js:12025
lx http://localhost:8888/js/capsule_client.bc.js:12020
h http://localhost:8888/js/capsule_client.bc.js:7715
V http://localhost:8888/js/capsule_client.bc.js:7901
lx http://localhost:8888/js/capsule_client.bc.js:12020
D http://localhost:8888/js/capsule_client.bc.js:12465
m http://localhost:8888/js/capsule_client.bc.js:12462
h http://localhost:8888/js/capsule_client.bc.js:7715
m http://localhost:8888/js/capsule_client.bc.js:12440
o http://localhost:8888/js/capsule_client.bc.js:7716
cG http://localhost:8888/js/capsule_client.bc.js:7905
e http://localhost:8888/js/capsule_client.bc.js:12439
h http://localhost:8888/js/capsule_client.bc.js:7715
jC http://localhost:8888/js/capsule_client.bc.js:7867
e http://localhost:8888/js/capsule_client.bc.js:12426
dp http://localhost:8888/js/capsule_client.bc.js:6648
m6 http://localhost:8888/js/capsule_client.bc.js:7160
(Async: EventListener.handleEvent)
H http://localhost:8888/js/capsule_client.bc.js:12456
h http://localhost:8888/js/capsule_client.bc.js:7715
sT http://localhost:8888/js/capsule_client.bc.js:12068
h http://localhost:8888/js/capsule_client.bc.js:7715
V http://localhost:8888/js/capsule_client.bc.js:7901
sT http://localhost:8888/js/capsule_client.bc.js:12060
18:58:26.784 Impossible de connecter le wallet capsule_client.bc.js:9868:329
dB http://localhost:8888/js/capsule_client.bc.js:9868
h http://localhost:8888/js/capsule_client.bc.js:7715
c_ http://localhost:8888/js/capsule_client.bc.js:9868
n http://localhost:8888/js/capsule_client.bc.js:12493
h http://localhost:8888/js/capsule_client.bc.js:7715
f http://localhost:8888/js/capsule_client.bc.js:9735
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
po http://localhost:8888/js/capsule_client.bc.js:9717
f http://localhost:8888/js/capsule_client.bc.js:9724
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
po http://localhost:8888/js/capsule_client.bc.js:9717
f http://localhost:8888/js/capsule_client.bc.js:9724
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
po http://localhost:8888/js/capsule_client.bc.js:9717
g http://localhost:8888/js/capsule_client.bc.js:9755
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
f http://localhost:8888/js/capsule_client.bc.js:9733
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
pk http://localhost:8888/js/capsule_client.bc.js:9705
d7 http://localhost:8888/js/capsule_client.bc.js:9847
e http://localhost:8888/js/capsule_client.bc.js:7362
(Async: promise callback)
aFi http://localhost:8888/js/capsule_client.bc.js:7363
d7 http://localhost:8888/js/capsule_client.bc.js:9847
m http://localhost:8888/js/capsule_client.bc.js:12499
h http://localhost:8888/js/capsule_client.bc.js:7715
kl http://localhost:8888/js/capsule_client.bc.js:9747
e http://localhost:8888/js/capsule_client.bc.js:12499
h http://localhost:8888/js/capsule_client.bc.js:7715
f http://localhost:8888/js/capsule_client.bc.js:9722
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
f http://localhost:8888/js/capsule_client.bc.js:9737
h http://localhost:8888/js/capsule_client.bc.js:7715
d http://localhost:8888/js/capsule_client.bc.js:9690
pg http://localhost:8888/js/capsule_client.bc.js:9693
pg http://localhost:8888/js/capsule_client.bc.js:9693
dA http://localhost:8888/js/capsule_client.bc.js:9697
h http://localhost:8888/js/capsule_client.bc.js:7715
ph http://localhost:8888/js/capsule_client.bc.js:9694
dA http://localhost:8888/js/capsule_client.bc.js:9697
pk http://localhost:8888/js/capsule_client.bc.js:9705
d http://localhost:8888/js/capsule_client.bc.js:9847
f http://localhost:8888/js/capsule_client.bc.js:7361
(Async: promise callback)
aFi http://localhost:8888/js/capsule_client.bc.js:7363
d7 http://localhost:8888/js/capsule_client.bc.js:9847
J http://localhost:8888/js/capsule_client.bc.js:12502
h http://localhost:8888/js/capsule_client.bc.js:7715
hK http://localhost:8888/js/capsule_client.bc.js:9768
J http://localhost:8888/js/capsule_client.bc.js:12483
o http://localhost:8888/js/capsule_client.bc.js:7716
lx http://localhost:8888/js/capsule_client.bc.js:12025
lx http://localhost:8888/js/capsule_client.bc.js:12020
h http://localhost:8888/js/capsule_client.bc.js:7715
V http://localhost:8888/js/capsule_client.bc.js:7901
lx http://localhost:8888/js/capsule_client.bc.js:12020
D http://localhost:8888/js/capsule_client.bc.js:12465
m http://localhost:8888/js/capsule_client.bc.js:12462
h http://localhost:8888/js/capsule_client.bc.js:7715
m http://localhost:8888/js/capsule_client.bc.js:12440
o http://localhost:8888/js/capsule_client.bc.js:7716
cG http://localhost:8888/js/capsule_client.bc.js:7905
e http://localhost:8888/js/capsule_client.bc.js:12439
h http://localhost:8888/js/capsule_client.bc.js:7715
jC http://localhost:8888/js/capsule_client.bc.js:7867
e http://localhost:8888/js/capsule_client.bc.js:12426
dp http://localhost:8888/js/capsule_client.bc.js:6648
m6 http://localhost:8888/js/capsule_client.bc.js:7160
(Async: EventListener.handleEvent)
H http://localhost:8888/js/capsule_client.bc.js:12456
h http://localhost:8888/js/capsule_client.bc.js:7715
sT http://localhost:8888/js/capsule_client.bc.js:12068
h http://localhost:8888/js/capsule_client.bc.js:7715
V http://localhost:8888/js/capsule_client.bc.js:7901
sT http://localhost:8888/js/capsule_client.bc.js:12060
Describe the bug
I notice a different behaviour between a normal compilation and a compilation with the
--profile=release
flag for handling rejections in promises. I haven't really managed to isolate the problem so I'm sorry for the limited information I can provide. This is always the case when developing an application that interacts with the Tezos chain. Here's the difference between "normal" compilation (in development) and compilation with the--profile=release
flag:compiling without
--profile=release
Here the application is launched in dev mode, the bundle is ~16mb
I can click on syncrhonize Wallet
After some step connecting through the wallet, everything is fine:
(And the application works)
compiling with
--profile=release
Here the application is launched in
release
mode, the bundle is ~1.20mbI have the same first screen (which is an huge progress since the new patches)
And I follow the instruction like in "dev" mode, but when I select my wallet, I face to :
So the error is a Promise rejection, which does not appear in "dev" mode. Here is the stack:
Here is ... the line (I guess)
And as always, here is the full javascript bundle : https://gist.github.com/xvw/2a7c83da66b153972f33b0feedfac339
It's difficult to give more context, so here are the packages used:
A side, here is the "dev mode" generated bundle (if it helps) https://gist.github.com/xvw/f814646dce98d3a85f5e1880a1631517
Thanks a lot, if I can give more context, feel free to ask.
Versions
I still use the master version of JSOO, everything is defined here: https://github.com/xvw/capsule/blob/main/capsule.opam
The text was updated successfully, but these errors were encountered: