Skip to content

API token is invalid. #57

Open
Open
@BorisKest

Description

@BorisKest

It seems that I'm having trouble filling in the .env . Could you coordinate how to fill it right.

@notionhq/client warn: request fail { code: 'unauthorized', message: 'API token is invalid.' }
/Users/boris/create-github-issues-by-notion-database/node_modules/@notionhq/client/src/errors.ts:240
return new APIResponseError({
^
APIResponseError: API token is invalid.
at Object.buildRequestError (/Users/boris/create-github-issues-by-notion-database/node_modules/@notionhq/client/src/errors.ts:240:12)
at Client.request (/Users/boris/create-github-issues-by-notion-database/node_modules/@notionhq/client/src/Client.ts:157:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'unauthorized',
status: 401,
headers: Headers {
[Symbol(map)]: [Object: null prototype] {
date: [Array],
'content-type': [Array],
'content-length': [Array],
connection: [Array],
'set-cookie': [Array],
'content-security-policy': [Array],
'x-dns-prefetch-control': [Array],
'x-frame-options': [Array],
'strict-transport-security': [Array],
'x-download-options': [Array],
'x-content-type-options': [Array],
'x-permitted-cross-domain-policies': [Array],
'referrer-policy': [Array],
'x-xss-protection': [Array],
etag: [Array],
vary: [Array],
'cf-cache-status': [Array],
server: [Array],
'cf-ray': [Array]
}
},
body: '{"object":"error","status":401,"code":"unauthorized","message":"API token is invalid."}'
}
error Command failed with exit code 1.

Thanks!

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