Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to register #45

Open
jk563 opened this issue Dec 23, 2022 · 7 comments
Open

Unable to register #45

jk563 opened this issue Dec 23, 2022 · 7 comments

Comments

@jk563
Copy link

jk563 commented Dec 23, 2022

Unfortunately it looks like this no longer works? Following the instructions given I keep hitting this auth issue that may be related to other recent tickets.

Hopefully this is just a me problem and there's something I missed

$ rmfuse ~/remarkable
This reMarkable client needs to be registered with the reMarkable
cloud. To do this, please visit
    https://my.remarkable.com/connect/desktop
to get a one-time code.

(You may be prompted to log into your reMarkable cloud account. If
this happens, you may not be redirected to the one-time code page.
In this case, you may open the above link a second time to get the
code.)

Enter the one-time code: [redacted]
Error in sys.excepthook:
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/trio/_core/_multierror.py", line 438, in trio_excepthook
    for chunk in traceback.format_exception(etype, value, tb):
  File "/opt/homebrew/Cellar/[email protected]/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/traceback.py", line 135, in format_exception
    te = TracebackException(type(value), value, tb, limit=limit, compact=True)
TypeError: traceback_exception_init() got an unexpected keyword argument 'compact'

Original exception was:
Traceback (most recent call last):
  File "/opt/homebrew/bin/rmfuse", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.10/site-packages/rmfuse/fuse.py", line 548, in main
    get_client_s()
  File "/opt/homebrew/lib/python3.10/site-packages/rmcl/sync.py", line 15, in sfunc
    return trio.run(runner)
  File "/opt/homebrew/lib/python3.10/site-packages/trio/_core/_run.py", line 1932, in run
    raise runner.main_task_outcome.error
  File "/opt/homebrew/lib/python3.10/site-packages/rmcl/sync.py", line 14, in runner
    return await afunc(*args, **kw)
  File "/opt/homebrew/lib/python3.10/site-packages/rmcl/api.py", line 389, in get_client
    await _client.prompt_register_device()
  File "/opt/homebrew/lib/python3.10/site-packages/rmcl/api.py", line 179, in prompt_register_device
    return await self.register_device(code)
  File "/opt/homebrew/lib/python3.10/site-packages/rmcl/api.py", line 158, in register_device
    raise AuthError(f"Could not register device (status code {response.status_code})")
rmcl.exceptions.AuthError: Could not register device (status code 500)
@Xaver106
Copy link

Xaver106 commented Jan 20, 2023

The new Link to register a new device seems to be https://my.remarkable.com/#desktop.
But it looks like remarkable added some sort of check to see if the connecting app is official.
The code I get from the new link fails in rmfusion with the following error:

/home/xaver106/.local/lib/python3.11/site-packages/trio/_core/_multierror.py:502: RuntimeWarning: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.
  warnings.warn(
This reMarkable client needs to be registered with the reMarkable
cloud. To do this, please visit
    https://my.remarkable.com/connect/desktop
to get a one-time code.

(You may be prompted to log into your reMarkable cloud account. If
this happens, you may not be redirected to the one-time code page.
In this case, you may open the above link a second time to get the
code.)

Enter the one-time code: xxxxxxxx
Traceback (most recent call last):
  File "/home/xaver106/.local/bin/rmfuse", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/xaver106/.local/lib/python3.11/site-packages/rmfuse/fuse.py", line 548, in main
    get_client_s()
  File "/home/xaver106/.local/lib/python3.11/site-packages/rmcl/sync.py", line 15, in sfunc
    return trio.run(runner)
           ^^^^^^^^^^^^^^^^
  File "/home/xaver106/.local/lib/python3.11/site-packages/trio/_core/_run.py", line 1932, in run
    raise runner.main_task_outcome.error
  File "/home/xaver106/.local/lib/python3.11/site-packages/rmcl/sync.py", line 14, in runner
    return await afunc(*args, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xaver106/.local/lib/python3.11/site-packages/rmcl/api.py", line 389, in get_client
    await _client.prompt_register_device()
  File "/home/xaver106/.local/lib/python3.11/site-packages/rmcl/api.py", line 179, in prompt_register_device
    return await self.register_device(code)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/xaver106/.local/lib/python3.11/site-packages/rmcl/api.py", line 158, in register_device
    raise AuthError(f"Could not register device (status code {response.status_code})")
rmcl.exceptions.AuthError: Could not register device (status code 500)

@jaker-dotcom
Copy link

can reproduce

@JeremyDarbellay
Copy link

Reproduced.
Used link provided by Xaver106 (thank you @Xaver106 )
Same error as Xaver106, error 500 by rmcl

@simisimis
Copy link

getting 500 as well... Just as I was about to get my hopes up..

@JeremyDarbellay
Copy link

@simisimis Ended up using wine and official app, it works

@IshmaelBelghazi
Copy link

Same error

@TudbuT
Copy link

TudbuT commented Jun 23, 2024

can reproduce

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

No branches or pull requests

7 participants