Closed maakle closed 3 years ago
Did you change the didconfig.json? Sounds like the connection to keyvault isn't working correctly.
I looked at your latest commits and changed it accordingly. Now it works again. Thanks!
The project crashes again with the same error on a clean git pull
when you press the Get Credential button. Maybe you wanna have a look into this @mahoekst
Same error:
throw new TypeError(`Key is not of type 'CryptoKey'`);
^
TypeError: Key is not of type 'CryptoKey' at SubtleCryptoKeyVault.checkCryptoKey
The project crashes again with the same error on a clean
git pull
when you press the Get Credential button. Maybe you wanna have a look into this @mahoekstSame error:
throw new TypeError(`Key is not of type 'CryptoKey'`); ^ TypeError: Key is not of type 'CryptoKey' at SubtleCryptoKeyVault.checkCryptoKey
can you tell me what exact steps you did after git clone? Is it not working without any code changes? IF you changed anything can you please specify the details about what you changed?
Actually pretty standard. I didn't change anything on the latest git clone. This is what I did:
git clone git@github.com:Azure-Samples/active-directory-verifiable-credentials.git
cd active-directory-verifiable-credentials/issuer/
npm i
or yarn
to install all dependencies in the issuer foldernode app.js
to start the App on localhost:8081ngrok 8081
to start port forwarding -> Then open the ngrok url in the browser. Until here everything works.I am running this on MacOS and with Node 15.6.0. Does it work for you on a clean git pull of the project? My assumption is there is something wrong with the keys in didconfig.json
, but perhaps you know more.
This is what the 502 error in ngrok says:
I just tried again, clean git clone, npm i and it just works. I am running the LTS version on Windows.
I think that just did the trick. I reverted node back on v14.15.4
and now it seems to run.
Maybe one of the sub dependencies is not compatible with the latest node version that I was running? You probably wanna look into this long term or create a ticket to come back to it and make it work with node 15 and higher.
Thanks!
Thanks. I filed a bug in our system to take a look and test with Node 15 and up. Thanks for reporting this.
Had the same issue on Node 14.16.1 (LTS).... May not be just Node 15+, happy to provide more details!
EDIT: Seems like the doc doesn't mention to change the config values of the didconfig.json. https://docs.microsoft.com/en-us/azure/active-directory/verifiable-credentials/enable-your-tenant-verifiable-credentials#update-the-sample-app
Within this section here. Going to attempt to continue on, but it seems off.
The following line in
/issuer/app.js
breaks for me:req.session.issueRequest = await requestBuilder.build().create();
The error leads to the QR code not being generated. Any idea what's wrong? Seems like it's a bug in the SDK and something is going wrong with signing the request?Full error log: