I have just discovered Joshua Oliphant’s Raindrop action from a couple of years ago. I set up Raindrop and got my token - I ran the action - it lets me enter the token - seems to run - BUT - despite apparent success - the link doesn’t appear.
Unloaded - re started - no luck.
I am not a techy so if there is a fail in the script somewhere - I wont find it by myself. BUT - I did ask Claude - and it told me …
You’re mixing template literal syntax (backticks) with function call syntax (parentheses). Pick one approach - either use backticks for the whole string with ${} interpolation, or use regular quotes with string concatenation.
Fix those three console.log statements and it should work.
So I ‘fixed’ it - tried again - and still fail. (At the same time - can’t believe this would be the issue - since the app I assume is working for others?
Would welcome any help from the community - is Joshua around still?
Is this the action you are using?
Is there anything in the action log after you run it?
From a quick look at that script, it does not handle errors properly…but there might be details from the built-in logging of the HTTP object.
1 Like
thank you for fast response - just ran now and this is in the action log
[object Object]
Posting raindrop: {“link”:“”,“title”:“Coherence Is The New Moat}
HTTP.request Failed: 400, Unknown error
Script step completed.
the URL I have in the draft is this and only this:
i just looked at others - and same message - other than the URL changing of course.
The action is written to use the body of the draft as the content for the post. This is the pertinent line:
let link = draft.processTemplate("[[body]]")
The “body” in Drafts’ template language is “everything but the first line” - so if your draft is just a URL on the first line, then you are sending an empty string to Raindrop with this action.
If you change that line to use [[draft]] it will send the full content of the draft, like:
let link = draft.processTemplate("[[draft]]")
I imagine that would probably work.
1 Like
Thank you Greg - that fixed it. The next three failed again - but wrangled it down to this seems to be am actipn that needs very specifc things - no more. no less. Extra line? nope. Markdown? nope. BUT - now I am there - title - and link - just the link - no fancy stuff and BOOM. Does what I need now - particularly since I now have the rules. Much appreciate the help.