Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好,可以出个通用版的吗 #2

Open
felix2chow opened this issue Oct 28, 2022 · 4 comments
Open

您好,可以出个通用版的吗 #2

felix2chow opened this issue Oct 28, 2022 · 4 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@felix2chow
Copy link

我看代码里用到了ali oos 能否出个实现功能的最简版并加一些注释,帮助一下小白,感谢您

@mohuishou mohuishou added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 28, 2022
@mohuishou
Copy link
Owner

这个后续加一下哈

@felix2chow
Copy link
Author

感谢,期待

mohuishou added a commit that referenced this issue Oct 28, 2022
- 完善使用说明文档
@mohuishou
Copy link
Owner

可以了哈,见最新的 readme 即可

@felix2chow
Copy link
Author

felix2chow commented Oct 30, 2022

1、配置示例notion_secret报错
Warning: Unexpected input(s) 'notion_secret', valid inputs are ['token', 'database_id', 'status_name', 'status_published', 'status_unpublish', 'migrate_image', 'output', 'access_key_id', 'access_key_secret', 'bucket', 'area', 'prefix']
2、notion_secret修改成token报错
(node:1623) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use node --trace-deprecation ... to show where the warning was created)
@notionhq/client warn: request fail { code: 'unauthorized', message: 'API token is invalid.' }
/home/runner/work/_actions/mohuishou/notion-blog-actions/main/dist/index.js:4172
return new APIResponseError({
^

APIResponseError: API token is invalid.
at Object.buildRequestError (/home/runner/work/_actions/mohuishou/notion-blog-actions/main/dist/index.js:4172:16)
at Client.request (/home/runner/work/_actions/mohuishou/notion-blog-actions/main/dist/index.js:3768:32)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async getPages (/home/runner/work/_actions/mohuishou/notion-blog-actions/main/dist/index.js:216590:14)
at async Object.sync (/home/runner/work/_actions/mohuishou/notion-blog-actions/main/dist/index.js:216568:15)
at async /home/runner/work/_actions/mohuishou/notion-blog-actions/main/dist/index.js:230664:3 {
code: 'unauthorized',
status: 401,
headers: Headers {
[Symbol(map)]: [Object: null prototype] {
date: [ 'Sun, 30 Oct 2022 06:03:33 GMT' ],
'content-type': [ 'application/json; charset=utf-8' ],
'content-length': [ '87' ],
connection: [ 'close' ],
'set-cookie': [
'notion_browser_id=451822a8-88d5-4068-908e-e4f4f879b6ab; Domain=www.notion.so; Path=/; Expires=Mon, 30 Oct 2023 06:03:33 GMT; Secure',
'notion_check_cookie_consent=false; Domain=www.notion.so; Path=/; Expires=Mon, 31 Oct 2022 06:03:33 GMT; Secure'
],
'content-security-policy': [
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://gist.github.com https://apis.google.com https://www.google.com https://www.gstatic.com https://cdn.amplitude.com https://api.amplitude.com https://hkfxbbdzib.notion.so https://widget.intercom.io https://js.intercomcdn.com https://static.zdassets.com https://api.smooch.io\t https://logs-01.loggly.com https://http-inputs-notion.splunkcloud.com https://cdn.segment.com https://analytics.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com https://embed.typeform.com https://admin.typeform.com https://public.profitwell.com js.sentry-cdn.com https://js.chilipiper.com https://platform.twitter.com https://cdn.syndication.twimg.com https://accounts.google.com https://www.googletagmanager.com https://www.googleadservices.com https://googleads.g.doubleclick.net https://api-v2.mutinyhq.io https://client-registry.mutinycdn.com https://client.mutinycdn.com https://user-data.mutinycdn.com https://cdn01.boxcdn.net;connect-src 'self' https://msgstore.www.notion.so wss://msgstore.www.notion.so ws://localhost:* ws://127.0.0.1:* https://notion-emojis.s3-us-west-2.amazonaws.com https://s3-us-west-2.amazonaws.com https://s3.us-west-2.amazonaws.com https://notion-production-snapshots-2.s3.us-west-2.amazonaws.com https://cdn.amplitude.com https://api.amplitude.com https://hkfxbbdzib.notion.so https://www.notion.so https://api.embed.ly https://js.intercomcdn.com https://api-iam.intercom.io https://uploads.intercomcdn.com wss://nexus-websocket-a.intercom.io https://ekr.zdassets.com https://ekr.zendesk.com\t https://makenotion.zendesk.com\t https://api.smooch.io\t wss://api.smooch.io\t https://logs-01.loggly.com https://http-inputs-notion.splunkcloud.com https://cdn.segment.com https://api.segment.io https://analytics.pgncs.notion.so https://api.pgncs.notion.so https://o324374.ingest.sentry.io https://checkout.stripe.com https://js.stripe.com https://cdn.contentful.com https://preview.contentful.com https://images.ctfassets.net https://www2.profitwell.com https://tracking.chilipiper.com https://api.chilipiper.com https://api.unsplash.com https://boards-api.greenhouse.io https://accounts.google.com https://oauth2.googleapis.com https://www.googletagmanager.com https://analytics.google.com https://www.googleadservices.com https://googleads.g.doubleclick.net https://region1.google-analytics.com https://region1.analytics.google.com https://www.google-analytics.com https://api-v2.mutinyhq.io https://client-registry.mutinycdn.com https://client.mutinycdn.com https://user-data.mutinycdn.com https://api.statuspage.io https://pgncd.notion.so https://api.statsig.com https://statsigapi.net https://exp.notion.so https://file.notion.so https://api.box.com;font-src 'self' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com https://cdn01.boxcdn.net;img-src 'self' data: blob: https: https://platform.twitter.com https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.com https://region1.google-analytics.com https://region1.analytics.google.com;style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://github.githubassets.com https://js.chilipiper.com https://platform.twitter.com https://ton.twimg.com https://accounts.google.com https://cdn01.boxcdn.net;frame-src https: http: https://accounts.google.com;media-src https: http: https://file.notion.so"
],
'x-dns-prefetch-control': [ 'off' ],
'x-frame-options': [ 'SAMEORIGIN' ],
'strict-transport-security': [ 'max-age=5184000; includeSubDomains' ],
'x-download-options': [ 'noopen' ],
'x-content-type-options': [ 'nosniff' ],
'x-permitted-cross-domain-policies': [ 'none' ],
'referrer-policy': [ 'strict-origin-when-cross-origin' ],
'x-xss-protection': [ '0' ],
etag: [ 'W/"57-QCRLT3IovYEW+CkwyJQlFtiXiG8"' ],
vary: [ 'Accept-Encoding' ],
'cf-cache-status': [ 'DYNAMIC' ],
server: [ 'cloudflare' ],
'cf-ray': [ '7621f2cb6973ea02-DFW' ]
}
},
body: '{"object":"error","status":401,"code":"unauthorized","message":"API token is invalid."}'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants