question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error cannot fetch your preferences when not logged in

See original GitHub issue
Unable to fetch your preferences - this was the error:  Error: (via loadPrefs) Error: Can't log in: Error: Could not log in
    at _callee5$ (authn.ts:288)
    at tryCatch (runtime.js:63)
    at Generator.invoke [as _invoke] (runtime.js:294)
    at Generator.throw (runtime.js:119)
    at asyncGeneratorStep (asyncToGenerator.js:3)
    at _throw (asyncToGenerator.js:29)

The error is raised in https://github.com/solid/solid-ui/blob/6a9e81a980072cb7f7b8e8098346bd1acac55269/src/authn/authn.ts#L219

This is caused by calling solidLogicSingelton without being logged in

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jeff-zuckercommented, Apr 27, 2022

Yes, I believe that is correct, the preferencesFile is private and can only be accessed when logged in so there is no point in looking for it if not logged in. I believe the correct behavior is

  1. Load the WebID Profile Document
  2. If logged in, load the preferences file 2a. If no preferences file found, offer to create one
  3. If not logged in, perhaps informative message in console :“not logged in, no preferences loaded”
1reaction
timea-solidcommented, Apr 26, 2022

Since we are not logged in, it should not even try to read the preference file. The check to see if the user is logged in should happen before, in the code. @jeff-zucker am I correct to say that the app should not even look for it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you can't sign in to your iMessage account or FaceTime on ...
If you're able to sign in, open the app and take these steps: Messages: Choose Messages > Settings (or Preferences), then click Sign...
Read more >
Windows error message: "We can't sign in to your account"
Get help fixing the error "We can't sign in to your account."
Read more >
Resolve issues signing in to your AWS console
Resolving issues with your account​​ If your account has been closed for more than 90 days, your sign-in information no longer exists. To...
Read more >
Can't access YouTube - Google Support
Your network administrator or ISP may be blocking YouTube. Get in touch with your network administrator or ISP and learn more. Manage content...
Read more >
Set up & manage your T-Mobile ID
Learn how to set up your T-Mobile ID login and password so you can log in to My T-Mobile.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found