reMarkable-typescript
reMarkable-typescript copied to clipboard
RequestError: getaddrinfo ENOTFOUND doesnotexist.remarkable.com
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);
It's because the api url is wrong. See this pull request: https://github.com/Ogdentrod/reMarkable-typescript/pull/26