jelleschutter / remarkable-firefox

Unoffical reMarkable AddOn for Firefox.
https://addons.mozilla.org/en-GB/firefox/addon/unofficial-remarkable/
71 stars 5 forks source link

Can't link to my remarkable account on Firefox 108.0.1 (64-bit) on Ubuntu 22.04 #9

Open flzara opened 1 year ago

flzara commented 1 year ago

Hi,

I can't manage to link the add-on with my remarkable account with Firefox 108.0.1 (64-bit) on Ubuntu 22.04

  1. I get a one-time code
  2. I paste in the required field and click connect
  3. I get the following error in raw HTML:
<html>
  <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>500 Server Error</title>
  </head> 
  <body text=#000000 bgcolor=#ffffff>
    <h1>Error: Server Error</h1>
    <h2>The server encountered an error and could not complete your request.<p>Please try again in 30 seconds.</h2>
    <h2></h2>
  </body>
</html>

image (I replaced the one-time code with X)

I can also confirm the official extension is working with Chromium version 108.0.5359.124 (Official Build) snap (64-bit) on the same system.

evavh commented 1 year ago

I am having the same problem in Firefox 107.0 (64-bit) on Pop!_OS 22.04 LTS when I try to upload a page, with the exact same error in the little plugin popup window.

milesatstetson commented 1 year ago

Seems to be cross platform: also on 108.0.1 (64-bit) on Windows 10 Pro, 22H2, version 19045.2364 .

Started recently, like beginning of the week.

jelleschutter commented 1 year ago

The pipeline for uploading new versions of the addon is currently broken (https://github.com/jelleschutter/remarkable-firefox/actions) so the current addon on the store is out of date. Fixing the action will hopefully do the trick. I will try to look over it during the holidays in the mean time any PR is very welcome.

evavh commented 1 year ago

Update on this bug: trying to upload a file is currently causing some of my notebooks to be overwritten with day-old versions from the cloud. One of them was just deleted. I am in contact with reMarkable about this, as I think this should not be possible even when using an outdated plugin (which might happen with the official plugin after all).

choffee commented 1 year ago

I think they might have changed the upload API: https://blog.mozilla.org/addons/2022/03/17/new-api-for-submitting-and-updating-add-ons/ seems that you don't specify the version in the URL for the upload ( I assume that's in the metadata for the upload) and the field for the upload is "upload" not "file" https://addons-server.readthedocs.io/en/latest/topics/api/addons.html#create

elliottw commented 1 year ago

I'm also having the same problem on an m1 macbook air running macOS 13.1.

twisted-nematic57 commented 1 year ago

Same issue on Ubuntu 22.10 x64 latest firefox

vuktur commented 1 year ago

I have the same issue on Windows 10 on up to date firefox, are there any fixes?

jelleschutter commented 1 year ago

Sorry for the long delay...I had some trouble with my 2 step authentication. The updating of the pipeline will take some time since the were some big changes in the way Mozilla handles new versions for addons. For the time being I manually uploaded a new version: https://addons.mozilla.org/en-GB/firefox/addon/unofficial-remarkable/

Please let me know if the problem still exists in the new version.

captn3m0 commented 1 year ago

It still doesn't connect on the new version for me.

I get a "NetworkError when attempting to fetch resource." instead. Console shows a "Response body is not available to scripts (Reason: CORS Missing Allow Origin)" error, the response contains a valid JWT.

image

Request that it breaks on:

curl 'https://webapp-prod.cloud.remarkable.engineering/token/json/2/device/new' -X POST -H 'Origin: moz-extension://7b66504e-f8e0-493f-bd49-c9b9f548e34e' --data-raw '{"code":"syyipcic","deviceID":"UUID","deviceDesc":"browser-chrome"}'
image
jelleschutter commented 1 year ago

Thanks for the quick response!! Finally managed to track down the issue. Firefox has added some updates the Manifest V3 format. One of which is that host permissions are no longer automatically accepted. (https://discourse.mozilla.org/t/blog-post-manifest-v3-in-firefox-recap-next-steps/97372/7)

At the moment you have to manually accept the permissions in the addon settings. You can get there by navigating to about:addons / Read on ReMarkable / Permissions image Ensure that the bottom two toggles are active. Hopefully this works for everyone.

captn3m0 commented 1 year ago

it worked, thanks. A note about enabling this on the extension page will be helpful.

flzara commented 1 year ago

I can confirm it works fine. Thank you :smile:

multilectical commented 1 year ago

for me too! A big thank you for you work ! :bouquet:

milesatstetson commented 1 year ago

With that permission add it now works here (Windows 10) too! Thank you!

donaldsoncd commented 1 year ago

Working for me again! Found this in the review section of the add-on. Thank you!

DelusionalLogic commented 3 weeks ago

I just installed the extension today, and I did NOT have to enable this manually.