Open AMGMNPLK opened 1 year ago
I've cut a new PR to fix this:
I have this error now when I try to create a draft from a note:
plugin:obsidian-buttondown-plugin:66 POST https://api.buttondown.email/v1/emails 403 (Forbidden) eval @ plugin:obsidian-buttondown-plugin:66 eval @ plugin:obsidian-buttondown-plugin:46 async @ plugin:obsidian-buttondown-plugin:30 saveDraft @ plugin:obsidian-buttondown-plugin:60 editorCallback @ plugin:obsidian-buttondown-plugin:98 e.mobileOnly.$w.isMobile.e.checkCallback @ app.js:1 uR @ app.js:1 t.onChooseItem @ app.js:1 t.onChooseSuggestion @ app.js:1 t.selectSuggestion @ app.js:1 e.useSelectedItem @ app.js:1 (anonymous) @ app.js:1 e.handleKey @ app.js:1 e.onKeyEvent @ app.js:1 plugin:obsidian-buttondown-plugin:81 Error - something went wrong: Response {type: 'cors', url: 'https://api.buttondown.email/v1/emails', redirected: false, status: 403, ok: false, …}body: (...)bodyUsed: falseheaders: Headers[[Prototype]]: Headersappend: ƒ append()delete: ƒ delete()entries: ƒ entries()forEach: ƒ forEach()get: ƒ ()has: ƒ has()keys: ƒ keys()set: ƒ ()values: ƒ values()constructor: ƒ Headers()Symbol(Symbol.iterator): ƒ entries()Symbol(Symbol.toStringTag): "Headers"[[Prototype]]: Objectok: falseredirected: falsestatus: 403statusText: "Forbidden"type: "cors"url: "https://api.buttondown.email/v1/emails"[[Prototype]]: ResponsearrayBuffer: ƒ arrayBuffer()blob: ƒ blob()body: (...)bodyUsed: (...)clone: ƒ clone()formData: ƒ formData()headers: (...)json: ƒ json()ok: (...)redirected: (...)status: (...)statusText: (...)text: ƒ text()type: (...)url: (...)constructor: ƒ Response()Symbol(Symbol.toStringTag): "Response"get body: ƒ body()get bodyUsed: ƒ bodyUsed()get headers: ƒ headers()get ok: ƒ ok()get redirected: ƒ redirected()get status: ƒ status()get statusText: ƒ statusText()get type: ƒ type()get url: ƒ url()[[Prototype]]: Object eval @ plugin:obsidian-buttondown-plugin:81 fulfilled @ plugin:obsidian-buttondown-plugin:33 Promise.then (async) step @ plugin:obsidian-buttondown-plugin:45 eval @ plugin:obsidian-buttondown-plugin:46 async @ plugin:obsidian-buttondown-plugin:30 saveDraft @ plugin:obsidian-buttondown-plugin:60 editorCallback @ plugin:obsidian-buttondown-plugin:98 e.mobileOnly.$w.isMobile.e.checkCallback @ app.js:1 uR @ app.js:1 t.onChooseItem @ app.js:1 t.onChooseSuggestion @ app.js:1 t.selectSuggestion @ app.js:1 e.useSelectedItem @ app.js:1 (anonymous) @ app.js:1 e.handleKey @ app.js:1 e.onKeyEvent @ app.js:1 app.js:1 Uncaught (in promise) DOMException: Transaction timed out due to inactivity.
This looks like it may be an issue with your API key. Did you find your API key at https://buttondown.email/settings#api and add it in the plugin settings?
I use the one that is in that link. I tried to regenerate, but the web doesn't create a new one.
Hi, I'm also getting the same 403 error when I try to run the create Buttondown draft command. I followed the advice upthread - generated a new API key and pasted it into the plugin settings, then restarted Obsidian. Not sure what could be the issue as this plugin has worked fine for me in the past.
Failed to load resource: the server responded with a status of 404 (Not Found) plugin:obsidian-buttondown-plugin:80 Error - something went wrong: Response eval @ plugin:obsidian-buttondown-plugin:80 DevTools failed to load source map: Could not load content for app://obsidian.md/SyncDotToSvgExportPlugin.js.map: System error: net::ERR_FILE_NOT_FOUND plugin:obsidian-buttondown-plugin:66 POST https://api.buttondown.email/v1/drafts 404 (Not Found) eval @ plugin:obsidian-buttondown-plugin:66 eval @ plugin:obsidian-buttondown-plugin:46 async @ plugin:obsidian-buttondown-plugin:30 saveDraft @ plugin:obsidian-buttondown-plugin:60 editorCallback @ plugin:obsidian-buttondown-plugin:97 e.mobileOnly.Mw.isMobile.e.checkCallback @ app.js:1 XN @ app.js:1 t.onChooseItem @ app.js:1 t.onChooseSuggestion @ app.js:1 t.selectSuggestion @ app.js:1 e.useSelectedItem @ app.js:1 (anonymous) @ app.js:1 e.handleKey @ app.js:1 e.onKeyEvent @ app.js:1 plugin:obsidian-buttondown-plugin:80 Error - something went wrong: Response {type: 'cors', url: 'https://api.buttondown.email/v1/drafts', redirected: false, status: 404, ok: false, …}body: ReadableStreambodyUsed: falseheaders: Headers {}ok: falseredirected: falsestatus: 404statusText: "Not Found"type: "cors"url: "https://api.buttondown.email/v1/drafts"[[Prototype]]: Response eval @ plugin:obsidian-buttondown-plugin:80 fulfilled @ plugin:obsidian-buttondown-plugin:33 Promise.then (async) step @ plugin:obsidian-buttondown-plugin:45 eval @ plugin:obsidian-buttondown-plugin:46 async @ plugin:obsidian-buttondown-plugin:30 saveDraft @ plugin:obsidian-buttondown-plugin:60 editorCallback @ plugin:obsidian-buttondown-plugin:97 e.mobileOnly.Mw.isMobile.e.checkCallback @ app.js:1 XN @ app.js:1 t.onChooseItem @ app.js:1 t.onChooseSuggestion @ app.js:1 t.selectSuggestion @ app.js:1 e.useSelectedItem @ app.js:1 (anonymous) @ app.js:1 e.handleKey @ app.js:1 e.onKeyEvent @ app.js:1