Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Failed to fetch document tree - 401 Unauthorized Error #177

Closed
peerdavid opened this issue May 19, 2021 · 18 comments
Closed

Failed to fetch document tree - 401 Unauthorized Error #177

peerdavid opened this issue May 19, 2021 · 18 comments

Comments

@peerdavid
Copy link
Contributor

Hi,

if I execute ./rmapi I get failed to build documents tree, last error: failed to fetch document tree 401 Unauthorized Error. I deleted the .rmapi file because I was not sure if my device token was still valid or not, but I still get the same error. Also, I have the same issue with other open-source tools (https://github.com/peerdavid/remapy) so I wonder if they changed the cloud API because the reMarkable android app and also the tablet still works fine...

Thanks a lot!
David

@stefanheyder
Copy link

I am experiencing the same issue; additionally I saw that when I deleted the rmapi.config the newly generated configuration has tokens that consist of html.

@peerdavid
Copy link
Contributor Author

I am experiencing the same issue; additionally I saw that when I deleted the rmapi.config the newly generated configuration has tokens that consist of html.

Same for me.

@ddvk
Copy link
Collaborator

ddvk commented May 19, 2021

what's the html? it could be that they changed their api or something

@peerdavid
Copy link
Contributor Author

peerdavid commented May 19, 2021

This is the entry in the rmapi.conf file:

devicetoken: <!doctype html><html><head><meta charset="utf-8"><meta name="viewport"
  content="width=device-width,initial-scale=1,user-scalable=no,minimum-scale=1,maximum-scale=1"><title>reMarkable
  &bull; Device Activation</title><link rel="shortcut icon" href="/assets/favicon.ico"><link
  rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link
  rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link
  rel="icon" type="image/png" sizes="48x48" href="/assets/favicon-48x48.png"><link
  rel="manifest" href="/assets/manifest.json"><meta name="mobile-web-app-capable"
  content="yes"><meta name="theme-color" content="#fff"><meta name="application-name"
  content="cloud-webapp-frontend"><link rel="apple-touch-icon" sizes="57x57" href="/assets/apple-touch-icon-57x57.png"><link
  rel="apple-touch-icon" sizes="60x60" href="/assets/apple-touch-icon-60x60.png"><link
  rel="apple-touch-icon" sizes="72x72" href="/assets/apple-touch-icon-72x72.png"><link
  rel="apple-touch-icon" sizes="76x76" href="/assets/apple-touch-icon-76x76.png"><link
  rel="apple-touch-icon" sizes="114x114" href="/assets/apple-touch-icon-114x114.png"><link
  rel="apple-touch-icon" sizes="120x120" href="/assets/apple-touch-icon-120x120.png"><link
  rel="apple-touch-icon" sizes="144x144" href="/assets/apple-touch-icon-144x144.png"><link
  rel="apple-touch-icon" sizes="152x152" href="/assets/apple-touch-icon-152x152.png"><link
  rel="apple-touch-icon" sizes="167x167" href="/assets/apple-touch-icon-167x167.png"><link
  rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon-180x180.png"><link
  rel="apple-touch-icon" sizes="1024x1024" href="/assets/apple-touch-icon-1024x1024.png"><meta
  name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style"
  content="black-translucent"><meta name="apple-mobile-web-app-title" content="cloud-webapp-frontend"><meta
  name="msapplication-TileColor" content="#fff"><meta name="msapplication-TileImage"
  content="/assets/mstile-144x144.png"><meta name="msapplication-config" content="/assets/browserconfig.xml"><script
  defer="defer" src="/app-ba470786acc62586d7bd.js"></script><link href="/app-8985a0472c889581283a.css"
  rel="stylesheet"></head><body><div id="root"></div></body></html>
usertoken: <!doctype html><html><head><meta charset="utf-8"><meta name="viewport"
  content="width=device-width,initial-scale=1,user-scalable=no,minimum-scale=1,maximum-scale=1"><title>reMarkable
  &bull; Device Activation</title><link rel="shortcut icon" href="/assets/favicon.ico"><link
  rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link
  rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link
  rel="icon" type="image/png" sizes="48x48" href="/assets/favicon-48x48.png"><link
  rel="manifest" href="/assets/manifest.json"><meta name="mobile-web-app-capable"
  content="yes"><meta name="theme-color" content="#fff"><meta name="application-name"
  content="cloud-webapp-frontend"><link rel="apple-touch-icon" sizes="57x57" href="/assets/apple-touch-icon-57x57.png"><link
  rel="apple-touch-icon" sizes="60x60" href="/assets/apple-touch-icon-60x60.png"><link
  rel="apple-touch-icon" sizes="72x72" href="/assets/apple-touch-icon-72x72.png"><link
  rel="apple-touch-icon" sizes="76x76" href="/assets/apple-touch-icon-76x76.png"><link
  rel="apple-touch-icon" sizes="114x114" href="/assets/apple-touch-icon-114x114.png"><link
  rel="apple-touch-icon" sizes="120x120" href="/assets/apple-touch-icon-120x120.png"><link
  rel="apple-touch-icon" sizes="144x144" href="/assets/apple-touch-icon-144x144.png"><link
  rel="apple-touch-icon" sizes="152x152" href="/assets/apple-touch-icon-152x152.png"><link
  rel="apple-touch-icon" sizes="167x167" href="/assets/apple-touch-icon-167x167.png"><link
  rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon-180x180.png"><link
  rel="apple-touch-icon" sizes="1024x1024" href="/assets/apple-touch-icon-1024x1024.png"><meta
  name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style"
  content="black-translucent"><meta name="apple-mobile-web-app-title" content="cloud-webapp-frontend"><meta
  name="msapplication-TileColor" content="#fff"><meta name="msapplication-TileImage"
  content="/assets/mstile-144x144.png"><meta name="msapplication-config" content="/assets/browserconfig.xml"><script
  defer="defer" src="/app-ba470786acc62586d7bd.js"></script><link href="/app-8985a0472c889581283a.css"
  rel="stylesheet"></head><body><div id="root"></div></body></html>

@iivvoo
Copy link

iivvoo commented May 19, 2021

Same here. Previous rmapi.conf contained the token (eyJh....) and some html. Re-pairing results in no token and just the html. In both cases the html has <title>reMarkable &bull; Device Activation</title>

@ddvk
Copy link
Collaborator

ddvk commented May 19, 2021

the auth url has changed, I can push a fix

ddvk pushed a commit to ddvk/rmapi that referenced this issue May 19, 2021
@ddvk
Copy link
Collaborator

ddvk commented May 19, 2021

so the url my.remarkable.com no longer points to their api

ddvk added a commit that referenced this issue May 19, 2021
@ddvk
Copy link
Collaborator

ddvk commented May 19, 2021

I've merged this to master, so please get the latest version (it should ask for the one time code again)

@peerdavid
Copy link
Contributor Author

Thank you so much for this very fast fix!

@ddvk
Copy link
Collaborator

ddvk commented May 19, 2021

@juruen we should create a new release probably

@juruen
Copy link
Owner

juruen commented May 19, 2021

@juruen we should create a new release probably

I'm on it. Thanks a lot for the quick fix!

@juruen
Copy link
Owner

juruen commented May 19, 2021

0.0.15 is out with the auth fix.

@cfichtlscherer
Copy link

Thanks a lot for the fast fix!

@jasdev
Copy link
Contributor

jasdev commented May 20, 2021

Just chiming in to say thanks for fixing this so quickly — y’all rock <3

@albertjmenkveld
Copy link

albertjmenkveld commented May 20, 2021 via email

@juruen
Copy link
Owner

juruen commented May 21, 2021

Thank you so much everyone for helping (and cheering) on this one.

The true hero is @ddvk who's been more than amazing at fixing and improving this project for a long time now! Thank you! ❤️

@juruen juruen closed this as completed May 21, 2021
@okflo
Copy link

okflo commented May 22, 2021

so cool - many thanks for this fast fix! open source rules! :)

@vchryssos
Copy link

Is it possible that this issue is happening again? I am getting the same error, although I updated to the latest rmapi version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants