reMarkable-typescript icon indicating copy to clipboard operation
reMarkable-typescript copied to clipboard

RequestError: getaddrinfo ENOTFOUND doesnotexist.remarkable.com

Open cvburgess opened this issue 3 years ago • 1 comments

When I do the following (where RM_CODE is a valid code) I get the error in the issue title and deviceToken is undefined.

const { Remarkable } = require("remarkable-typescript");

const client = new Remarkable();
const deviceToken = await client.register({ code: RM_CODE });
  
console.log(deviceToken);

cvburgess avatar Aug 09 '21 13:08 cvburgess

It's because the api url is wrong. See this pull request: https://github.com/Ogdentrod/reMarkable-typescript/pull/26

Ebbe avatar Aug 11 '21 06:08 Ebbe