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

Failed to create user token from device token #283

Closed
evavh opened this issue Dec 21, 2022 · 3 comments
Closed

Failed to create user token from device token #283

evavh opened this issue Dec 21, 2022 · 3 comments

Comments

@evavh
Copy link

evavh commented Dec 21, 2022

I am getting the following error when trying to run rmapi:
ERROR: 2022/12/21 10:19:36 auth.go:50: failed to create user token from device token request failed with status 500

Trace (tokens replaced with XXXX)
INFO: 2022/12/21 10:31:22 common.go:61: cache loaded:  /home/eva/.cache/rmapi/.tree
Trace: 2022/12/21 10:31:22 blobstorage.go:49: fetching GET blob url for: root
Trace: 2022/12/21 10:31:22 transport.go:177: request: POST /sync/v2/signed-urls/downloads HTTP/1.1
Host: internal.cloud.remarkable.com
Authorization: Bearer XXXX
User-Agent: rmapi

{"http_method":"GET","relative_path":"root"} <nil>
Trace: 2022/12/21 10:31:22 transport.go:190: HTTP/2.0 401 Unauthorized
Content-Length: 14
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Content-Type: text/plain; charset=utf-8
Date: Wed, 21 Dec 2022 09:31:22 GMT
Server: Google Frontend
Traceparent: XXXX
Via: 1.1 google
X-Cloud-Trace-Context: XXXX
X-Content-Type-Options: nosniff
X-Envoy-Decorator-Operation: ingress CreateDownloadUrlV2

invalid token
 <nil>
Trace: 2022/12/21 10:31:22 transport.go:194: request failed with status 401
Trace: 2022/12/21 10:31:22 main.go:36: 401 Unauthorized Error
Trace: 2022/12/21 10:31:22 transport.go:177: request: POST /token/json/2/user/new HTTP/1.1
Host: webapp-production-dot-remarkable-production.appspot.com
Authorization: Bearer XXXX
User-Agent: rmapi

 <nil>
Trace: 2022/12/21 10:31:22 transport.go:190: HTTP/2.0 500 Internal Server Error
Content-Length: 323
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Content-Type: text/html; charset=UTF-8
Date: Wed, 21 Dec 2022 09:31:22 GMT
Server: Google Frontend

<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>
 <nil>
Trace: 2022/12/21 10:31:22 transport.go:194: request failed with status 500
ERROR: 2022/12/21 10:31:22 auth.go:50: failed to create user token from device token request failed with status 500

I have tried deleting the rmapi config and entering a new one-time code, but that gives me the following error:
ERROR: 2022/12/21 10:22:20 auth.go:93: failed to create a new device token

Trace
Trace: 2022/12/21 10:40:46 transport.go:177: request: POST /token/json/2/device/new HTTP/1.1
Host: webapp-production-dot-remarkable-production.appspot.com
Authorization: Bearer
User-Agent: rmapi

{"code":"XXXX","deviceDesc":"desktop-linux","deviceID":"XXXX"} <nil>
Trace: 2022/12/21 10:40:46 transport.go:190: HTTP/2.0 500 Internal Server Error
Content-Length: 323
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Content-Type: text/html; charset=UTF-8
Date: Wed, 21 Dec 2022 09:40:46 GMT
Server: Google Frontend

<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>
 <nil>
Trace: 2022/12/21 10:40:46 transport.go:194: request failed with status 500
ERROR: 2022/12/21 10:40:46 auth.go:93: failed to create a new device token

This all happened at the same time that this issue appeared in the Read on reMarkable plugin for Firefox . I thus suspect that something changed in reMarkable's authentication API that broke both these third-party applications.

@nov1n
Copy link

nov1n commented Dec 21, 2022

I got the same error in my project nov1n/RemarkablePocket#20 that uses rmapi.

@morewithout
Copy link

This has just been fixed in v.0.0.23. See #274 :-)

@evavh
Copy link
Author

evavh commented Dec 22, 2022

Ah thanks, I though that was a different issue. :)

@evavh evavh closed this as completed Dec 22, 2022
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

3 participants