Closed jean closed 7 years ago
Hello @jean - Do you have any additional privacy extensions such as Privacy Badger installed? One known cause of 'Session invalid' errors is due to the way authentication currently works which results in login failing if third-party cookies are blocked.
Ah, indeed, allowing cookies for hypothes.is
made the bookmarklet work. Do you know whether this is the only required setting?
Oh, now I've broken something else .. the bookmarklet doesn't show up and this error is logged:
Error: Cannot find module '/h/static/scripts/polyfills.js'
https://hypothes.is/assets/scripts/injector.bundle.js?ef1d8b
Line 1
It's still happening with Privacy Badger disabled, so I don't think it's related to this issue. Maybe a restart will help ..
@jean Not sure if still relevant, but I had the same error under Firefox 55 and found two ways of solving it – see https://github.com/hypothesis/product-backlog/issues/45#issuecomment-323615323
Hypothesis (as of v1.39) now detects when the browser is preventing it from storing cookies and falls back to using OAuth rather than cookies for authentication in this context. You may find that you need to click the "Log in" button each time the client loads, but as long as you are signed in to the website you won't have to re-enter your login details each time.
Annotating this article, I find that my Firefox bookmarklet is stuck on "Session is invalid. Please try again." (when I go to the hypothesis site, I am signed in).
Request:
Response:
When I try proxying, the browser spins on a blank page, waiting for two requests .
But annotating via the Chrome extension works fine.