Giter Site home page Giter Site logo

zrmconnector's Issues

Isue when entering credentials

Hi,

I get this error message just after entering my one-time remarkable code. Any idea why?

Thanks in advance,

ReMarkable credentials Error
/Users/amaurygouverneur/MyDocuments/KTH/Research/zotero_remarkable_connector/ZRMconnector/node_modules/node-fetch/lib/index.js:683
throw new TypeError(${value} is not a legal HTTP header value);
^

TypeError: Bearer <!doctype html><title>reMarkable</title><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':

SyntaxError: Unexpected token ?

I ran "node ." and got the following error:

`ZRMconnector/connector.js:102
let paper = papers[title] ?? { title }
^

SyntaxError: Unexpected token ?
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/aos11409/ZRMconnector/index.js:4:19)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)`

I'm unsure if this is my fault in setting up the connectors.json or if this is a error in the main code. Any ideas?

error after providing one-time-code

using the following config

{
    "zotero_1": {
        "remarkable_dir": "/zot",
        "remarkable_archive_dir": "bin'",
        "zotero_path": [
            {
                "type": "collection",
                "name": "RM"
            }
        ],
        "tags": {
            "me - toread": "2READ",
            "me - reading": "READING",
            "me - done": "READ"
        }
    }
}

resulted in the following error after providing a new one-time-code

❯ node .
[SYSTEM]::launch of ZRMc system v0.4.2
[CONN:zotero_1]::setup local_directories /zot
CREDENTIAL NEEDED - ReMarkable One Time Code: ixslwrza
ReMarkable credentials Error

/Users/faro/repositories/ZRMconnector/node_modules/node-fetch/lib/index.js:1461
                        reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
                               ^
FetchError: request to https://doesnotexist.remarkable.com/ failed, reason: getaddrinfo ENOTFOUND doesnotexist.remarkable.com
    at ClientRequest.<anonymous> (/Users/faro/repositories/ZRMconnector/node_modules/node-fetch/lib/index.js:1461:11)
    at ClientRequest.emit (node:events:365:28)
    at TLSSocket.socketErrorListener (node:_http_client:447:9)
    at TLSSocket.emit (node:events:365:28)
    at emitErrorNT (node:internal/streams/destroy:193:8)
    at emitErrorCloseNT (node:internal/streams/destroy:158:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  type: 'system',
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND'
}

any idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.