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

404 error #1

Open
AMGMNPLK opened this issue Feb 9, 2023 · 5 comments
Open

404 error #1

AMGMNPLK opened this issue Feb 9, 2023 · 5 comments

Comments

@AMGMNPLK
Copy link

AMGMNPLK commented Feb 9, 2023

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

@jmduke
Copy link
Contributor

jmduke commented Mar 28, 2023

I've cut a new PR to fix this:

#2

@AMGMNPLK
Copy link
Author

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.

@caro401
Copy link
Owner

caro401 commented Apr 4, 2023

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?

@AMGMNPLK
Copy link
Author

AMGMNPLK commented Apr 4, 2023

I use the one that is in that link. I tried to regenerate, but the web doesn't create a new one.

@olivia530
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants