Skip to content

Error: expected postMessage call for 'storage/getItem' to return a string, but got value null #73

Closed

Description

@RubenVerborgh

When opening the popup in Chrome from an http: host, the following bug can occur:

popup.html:10 Error: expected postMessage call for 'storage/getItem' to return a string, but got value null
    at popup.html:10
    at _ (popup.html:24)
    at Generator._invoke (popup.html:24)
    at Generator.e.(anonymous function) [as next] (http://lab1.websys/profile-viewer-tutorial/popup.html:24:67449)
    at o (popup.html:10)
    at popup.html:10
(anonymous) @ popup.html:10
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
Promise.then (async)
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:17
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:17
t.getRegisteredRp @ popup.html:17
(anonymous) @ popup.html:17
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:17
(anonymous) @ popup.html:24
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:24
(anonymous) @ popup.html:24
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
Promise.then (async)
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:24
b @ popup.html:10
popup.html:17 Error logging in with WebID-OIDC
(anonymous) @ popup.html:17
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
Promise.then (async)
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:17
(anonymous) @ popup.html:24
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:24
(anonymous) @ popup.html:24
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
Promise.then (async)
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:24
b @ popup.html:10
popup.html:17 TypeError: Cannot read property 'importKey' of undefined
    at e.value (popup.html:24)
    at Function.value (popup.html:24)
    at Function.value (popup.html:24)
    at popup.html:24
    at Array.map (<anonymous>)
    at Function.value (popup.html:24)
    at popup.html:24
(anonymous) @ popup.html:17
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
Promise.then (async)
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:17
(anonymous) @ popup.html:24
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:24
(anonymous) @ popup.html:24
_ @ popup.html:24
(anonymous) @ popup.html:24
e.(anonymous function) @ popup.html:24
o @ popup.html:10
(anonymous) @ popup.html:10
Promise.then (async)
o @ popup.html:10
(anonymous) @ popup.html:10
t @ popup.html:10
(anonymous) @ popup.html:10
(anonymous) @ popup.html:24
b @ popup.html:10

As reported by @oshanis and others.

Activity

  1. RubenVerborgh commented on Oct 13, 2018

    @RubenVerborgh
    ContributorAuthor

    While the storage/getItem issue is solved, I'm not sure whether this was the main reason of the original bug, given that this issue would result in warnings but not any breakage.

    Possibly, Cannot read property 'importKey' of undefined is the real problem here, but I cannot reproduce.

  2. melvincarvalho commented on Oct 15, 2018

    @melvincarvalho

    Possibly, Cannot read property 'importKey' of undefined is the real problem here, but I cannot reproduce.

    It is, but I keep getting it over and over (running on localhost) and it's driving me crazy. All my libs are up to date. Cryptic. With post more if I make progress.

  3. RubenVerborgh commented on Oct 15, 2018

    @RubenVerborgh
    ContributorAuthor

    With post more if I make progress.

    Perfect, please create a new issue with this.

  4. melvincarvalho commented on Oct 15, 2018

    @melvincarvalho

    If it's any help the importKey error occured when I was running on localhost with a self signed cert.

    When deployed to gh-pages with an ssl cert the error went away.

  5. RubenVerborgh commented on Oct 15, 2018

    @RubenVerborgh
    ContributorAuthor

    Interesting, can you make that into a reproducible issue? (I don't run into it myself, seemingly same circumstances.)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions