bcgov / dts-vc-issuer-service

Digital Trust Verifiable Credential Issuer Service
Apache License 2.0
0 stars 11 forks source link

QR code sometimes doesn't show up #68

Closed swcurran closed 1 year ago

swcurran commented 3 years ago

We've been demoing the issuer service and it's generally working well, but sometimes the QR code does not come up when clicking the issue to the wallet button. It's generally when retrying the walkthrough a second time, sometimes after stopping (rm and stop) and then start-ing the service. Pretty sure that a refresh of the browser solves the issue, so perhaps it is data in the browser that is out of sync with persisted data(?).

We're working on getting consistent recreation instructions, but perhaps a quick scan of the code and ways that the QR code would NOT display when the button is clicked?

Thanks

watkinspd commented 3 years ago

Here's my experience with this when I tested again this evening: In terminal 1

  1. started ngrok

In terminal 2

  1. ./manage rm
  2. ./manage start

From browser localhost:4200 login click button to stage credential (the text notice in yellow came up saying ready to issue) clicked button to add to wallet (nothing happened, button click did not do anything)

Screen Shot 2021-05-10 at 7 59 32 PM

console log of terminal 2 showed

Screen Shot 2021-05-10 at 7 59 53 PM

Quit the browser In terminal 2

  1. ctrl-c
  2. ./manage stop
  3. ./manage start

console log of terminal 2 at that point showed

Screen Shot 2021-05-10 at 8 02 50 PM

Started browser localhost:4200 login

Screen Shot 2021-05-10 at 8 02 36 PM

Staged the credential to add to wallet the yellow text was displayed to say ready

console log of terminal 2 showed

Screen Shot 2021-05-10 at 8 03 17 PM

Clicked to add to wallet QR Code rendered

Screen Shot 2021-05-10 at 8 03 32 PM

Console log of terminal 2 showed

Screen Shot 2021-05-10 at 8 03 50 PM

The difference I see is that in the first attempt where it failed to generate the QR Code the console log shows its last line as a call to HTTP POST /api/patients

Where as in the second attempt that did generate a QR Code the console log does NOT have that call in the sequence of events from app start to QR Code generation.

This has been the pattern every time it fails. Whenever it fails to generate a QR Code the console log looks like the first log I listed above. The last line being HTTP POST /api/patients and then nothing more.

swcurran commented 1 year ago

Overcome by events. Closing.