Closed leidichen closed 2 years ago
你的BRAT有没有安装错?
插件中心搜索出来是这个哦
然后点击
把 EasyChris/obsidian-to-notion
复制黏贴进去
图片的有效信息太少了,请说明你哪一步出错了。是安装上了brat出问题了,还是我的插件打开了,出问题了?
那么插件应该是加载成功了
确认下 integration 已经申请,并邀请进入 database了么?根据动图的教程
一般错误就是可能notion那边的权限有问题
点击view,然后打开开发者工具
然后点击一下上传,把输出的日志给我一下
看到以后点击复制对象
{
"status": 200,
"headers": {
"date": "Wed, 01 Jun 2022 08:00:50 GMT",
"content-type": "application/json; charset=utf-8",
"set-cookie": [
"notion_browser_id=7cee35b3-6b7f-472d-9546-e2244cf335e1; Domain=www.notion.so; Path=/; Expires=Thu, 01 Jun 2023 08:00:50 GMT; Secure",
"notion_check_cookie_consent=false; Domain=www.notion.so; Path=/; Expires=Thu, 02 Jun 2022 08:00:50 GMT;
}
VM162:15501 fullpath E:/个人文件/leidi‘note/2.笔记/笔记工具.md
VM162:15389 {__content: "## Obsidian↵测试很多天,由于 Vscode 和 Obsidian 存在功能性重合,一只无…2)↵ - 数据库的 ID:`6954f9b9fbb84e8d9bdda2be7534096d`↵"}
VM162:15398 {status: 400, headers: {…}, arrayBuffer: ArrayBuffer(105)}arrayBuffer: ArrayBuffer(105) {}headers: {date: "Wed, 01 Jun 2022 08:12:17 GMT", content-type: "application/json; charset=utf-8", content-length: "105", set-cookie: Array(2), content-security-policy: "script-src 'self' 'unsafe-inline' 'unsafe-eval' ht…com;frame-src https: http:;media-src https: http:", …}json: (...)status: 400text: (...)get json: ƒ json()get text: ƒ text()__proto__: Object "==="
VM162:15485 {status: 400, headers: {…}, arrayBuffer: ArrayBuffer(105)}arrayBuffer: ArrayBuffer(105) {}headers: {date: "Wed, 01 Jun 2022 08:12:17 GMT", content-type: "application/json; charset=utf-8", content-length: "105", set-cookie: Array(2), content-security-policy: "script-src 'self' 'unsafe-inline' 'unsafe-eval' ht…com;frame-src https: http:;media-src https: http:", …}json: (...)status: 400text: (...)get json: ƒ json()get text: ƒ text()__proto__: Object
temp1
{status: 400, headers: {…}, arrayBuffer: ArrayBuffer(105)}arrayBuffer: ArrayBuffer(105) {}headers: {date: "Wed, 01 Jun 2022 08:12:17 GMT", content-type: "application/json; charset=utf-8", content-length: "105", set-cookie: Array(2), content-security-policy: "script-src 'self' 'unsafe-inline' 'unsafe-eval' ht…com;frame-src https: http:;media-src https: http:", …}json: (...)status: 400text: (...)get json: ƒ json()get text: ƒ text()__proto__: Object
temp2
{status: 400, headers: {…}, arrayBuffer: ArrayBuffer(105)}arrayBuffer: ArrayBuffer(105) {}headers: {date: "Wed, 01 Jun 2022 08:12:17 GMT", content-type: "application/json; charset=utf-8", content-length: "105", set-cookie: Array(2), content-security-policy: "script-src 'self' 'unsafe-inline' 'unsafe-eval' ht…com;frame-src https: http:;media-src https: http:", …}json: (...)status: 400text: (...)get json: ƒ json()get text: ƒ text()__proto__: Object
请将日志完整的复制下来,在输出的日志上点击复制完整的日志
你这样关键信息都隐藏了,400大概率就是你integration错了或者你的notion token 有问题,请再去确认一下。
2022年6月1日19:03:15
开发者完整报告如下:
{ "status": 400, "headers": { "date": "Wed, 01 Jun 2022 10:52:32 GMT", "content-type": "application/json; charset=utf-8", "content-length": "105", "set-cookie": [ "notion_browser_id=1bf59f33-300f-43f6-b8c5-cb5d2257e216; Domain=www.notion.so; Path=/; Expires=Thu, 01 Jun 2023 10:52:31 GMT; Secure", "notion_check_cookie_consent=true; Domain=www.notion.so; Path=/; Expires=Thu, 02 Jun 2022 10:52:31 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://logs-01.loggly.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 www.googletagmanager.com https://www.googleadservices.com https://googleads.g.doubleclick.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://logs-01.loggly.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://www.googleadservices.com https://googleads.g.doubleclick.net https://www.google-analytics.com
https://api.statuspage.io https://pgncd.notion.so https://api.statsig.com;font-src 'self' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;img-src 'self'
data: blob: https: https://platform.twitter.com https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.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;frame-src https:
http:;media-src https: http:", "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": "same-origin", "x-xss-protection": "0", "etag": "W/\"69-7uxf9j2N8VoV5SfFHAlz/QBtNlo\"", "vary": "Accept-Encoding", "cf-cache-status": "DYNAMIC", "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "server": "cloudflare", "cf-ray": "7147667b4eb24c5b-AMS" }, "arrayBuffer": {}, "json": { "object": "error", "status": 400, "code": "validation_error", "message": "Name is not a property that exists." }, "text": "{\"object\":\"error\",\"status\":400,\"code\":\"validation_error\",\"message\":\"Name is not a property that exists.\"}" }
{ "status": 400, "headers": { "date": "Wed, 01 Jun 2022 10:52:32 GMT", "content-type": "application/json; charset=utf-8", "content-length": "105", "set-cookie": [ "notion_browser_id=1bf59f33-300f-43f6-b8c5-cb5d2257e216; Domain=www.notion.so; Path=/; Expires=Thu, 01 Jun 2023 10:52:31 GMT; Secure", "notion_check_cookie_consent=true; Domain=www.notion.so; Path=/; Expires=Thu, 02 Jun 2022 10:52:31 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://logs-01.loggly.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 www.googletagmanager.com https://www.googleadservices.com https://googleads.g.doubleclick.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://logs-01.loggly.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://www.googleadservices.com https://googleads.g.doubleclick.net https://www.google-analytics.com
https://api.statuspage.io https://pgncd.notion.so https://api.statsig.com;font-src 'self' data: https://cdnjs.cloudflare.com https://js.intercomcdn.com;img-src 'self'
data: blob: https: https://platform.twitter.com https://syndication.twitter.com https://pbs.twimg.com https://ton.twimg.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;frame-src https:
http:;media-src https: http:", "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": "same-origin", "x-xss-protection": "0", "etag": "W/\"69-7uxf9j2N8VoV5SfFHAlz/QBtNlo\"", "vary": "Accept-Encoding", "cf-cache-status": "DYNAMIC", "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "server": "cloudflare", "cf-ray": "7147667b4eb24c5b-AMS" }, "arrayBuffer": {}, "json": { "object": "error", "status": 400, "code": "validation_error", "message": "Name is not a property that exists." }, "text": "{\"object\":\"error\",\"status\":400,\"code\":\"validation_error\",\"message\":\"Name is not a property that exists.\"}" }
我大概知道为什么了,你那个名称错了 你把名称改成Name(注意Name的N要大写),英文模式下默认是Name
应该是没考虑到中文的情况,如果你改成Name可以使用,那应该是个中文的bug,我后面要修复一下。
🎆 问题完美解决!感谢开发者积极回应,再次对 obsidian-to-notion 插件表示认同和喜欢!希望作者不断完善,添加更多联动 Notion 其他功能!
下面把无法同步的解决过程描述如下,遇到该问题同学可以参考:
关于开发者文档容易被误导的几处建议:
英文版说明添加了 banner_url 的说明,中文版未及时同步,我后面有空的时候同步下
Name这个字段是个中文环境下的bug,因为我自己是英文,所以没测出来,后期会完善修复一下。
嵌套那是可以改进一下。
其实当你密钥错误,error我也应该输出出来,后期会修正。
感谢发现的bug。
我有一个同样的问题,我已经成功的可以同步了好几个page过去了,因此并不是integration错了或者是notion token有问题或者是由于上述的Name原因,但是并不是所有Page都能成功。失败的时候提示如图
这是由于什么原因造成的?有什么办法能解决吗?
@wyih 你上传的是什么内容? database类型的嘛? 可否给我一份上传失败的文件类型,我做下测试复现。
「202006221832.md」https://www.aliyundrive.com/s/vwBuQu7uCQN 提取码: ko98
这是我的Obsidian里总是失败的MD文件,里面有一些图片没有包括,但我别的页面也有图片的sync也没有问题,所以应该不是图片的问题。
「202006221832.md」https://www.aliyundrive.com/s/vwBuQu7uCQN 提取码: ko98
这是我的Obsidian里总是失败的MD文件,里面有一些图片没有包括,但我别的页面也有图片的sync也没有问题,所以应该不是图片的问题。
我测试你给我的这个文件,是正常上传到notion的。
你删除你这个表中的table再上传试试?不知道是不是这个md文件中的table的格式问题,导致上传失败的。
「202006221832.md」https://www.aliyundrive.com/s/vwBuQu7uCQN 提取码: ko98 这是我的Obsidian里总是失败的MD文件,里面有一些图片没有包括,但我别的页面也有图片的sync也没有问题,所以应该不是图片的问题。
我测试你给我的这个文件,是正常上传到notion的。
你删除你这个表中的table再上传试试?不知道是不是这个md文件中的table的格式问题,导致上传失败的。
的确是因为这个table造成的,table删了之后就成功了
非常感谢作者同步Notion插件,很棒!