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
If I run the w3cCredentialService tests (in modules/vc/tests/W3cCredentialService.test.ts) with my internet connection turned off most of the tests fail (with the invalid URL error that you get when it cannot resolve an external uri).
See the custom document loader in packages/core/src/modules/vc/tests/documentLoader.ts
The custom loader has a call to jsonld.frame for did: URLs :-
if (url.startsWith('did:')) {
result = await jsonld.frame(result, {
'@context': result['@context'],
'@embed': '@never',
id: url,
})
}
Inside the jsonld.frame call (deep inside the digitalcredentials library) it is attempting to resolve the context by attempting to go across the internet (which fails)
It looks like it uses its own default document loader to do this (which I believe relies on having a network connection)
The text was updated successfully, but these errors were encountered:
NB-MikeRichardson
changed the title
W3cCredentialService Custom Document Loader does not work when no Internet
W3cCredentialService Custom Document Loader does not work when no Internet -> e2e Tests Fail
Nov 21, 2022
If I run the w3cCredentialService tests (in modules/vc/tests/W3cCredentialService.test.ts) with my internet connection turned off most of the tests fail (with the invalid URL error that you get when it cannot resolve an external uri).
See the custom document loader in packages/core/src/modules/vc/tests/documentLoader.ts
The custom loader has a call to jsonld.frame for did: URLs :-
Inside the jsonld.frame call (deep inside the digitalcredentials library) it is attempting to resolve the context by attempting to go across the internet (which fails)
It looks like it uses its own default document loader to do this (which I believe relies on having a network connection)
The text was updated successfully, but these errors were encountered: