Skip to content

Token read with EOL failed #142

@jyxjjj

Description

@jyxjjj

Based on commit 1b2284864de48d2dcae22582fff122fe24909c3d.

src/controllers/token.js:19 needs a trim
Because it is a file which may contains EOL due to manually edition:

node:internal/errors:540
      throw error;
      ^

TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["x-zt1-auth"]
    at ClientRequest.setHeader (node:_http_outgoing:702:3)
    at new ClientRequest (node:_http_client:302:14)
    at Object.request (node:http:102:10)
    at get (/data/ztncui/src/node_modules/got/index.js:49:18)
    at Immediate.<anonymous> (/data/ztncui/src/node_modules/got/index.js:124:3)
    at process.processImmediate (node:internal/timers:511:21) {
  code: 'ERR_INVALID_CHAR'
}

Btw
README.md:51: root of the ztncui directory should be src directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions