Comments (7)
The bug is caused by the irregular order of collections in the children
endpoint. This should be fixed in v0.0.16.
from obsidian-raindrop-highlights-plugin.
Thanks for reporting the bug. However, I'm currently not a Raindrop PRO user. Can you provide the API responses for the following two endpoints: https://api.raindrop.io/rest/v1/collections
and https://api.raindrop.io/rest/v1/collections/childrens
?
Example using curl:
curl -H "Authorization: Bearer <replace this to your token>" https://api.raindrop.io/rest/v1/collections
curl -H "Authorization: Bearer <replace this to your token>" https://api.raindrop.io/rest/v1/collections/childrens
Thanks.
from obsidian-raindrop-highlights-plugin.
Don't know if this will help @kaiiiz but here is my response. Go
and Ruby
are nested inside the Programming Languages
collection but aren't showing up on the first API, seems they are linked by ID in the second API's response to the IDs returned in the first.
> curl -H "Authorization: Bearer *redacted*" https://api.raindrop.io/rest/v1/collections
{"result":true,"items":[{"title":"Obsidian Learning","description":"","public":false,"view":"grid","count":31,"cover":[],"expanded":false,"_id":25691070,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-10-16T01:34:58.857Z","created":"2022-07-03T21:54:33.585Z","lastUpdate":"2022-10-16T01:34:58.858Z","sort":25691070,"slug":"obsidian-learning","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Archive","description":"","public":false,"view":"list","count":79,"cover":["https://up.raindrop.io/collection/thumbs/256/901/16/5d13a4304e76fcdf386389e9e5a47e95.png"],"expanded":false,"_id":25690116,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-11-29T21:25:41.160Z","created":"2022-07-03T21:11:41.767Z","lastUpdate":"2022-11-29T21:25:41.160Z","sort":25690116,"slug":"archive","color":"#1e76cf","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Self Improvement","description":"","public":false,"view":"grid","count":2,"cover":[],"expanded":false,"_id":25851968,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-09-24T02:44:05.093Z","created":"2022-07-13T16:20:14.291Z","lastUpdate":"2022-09-24T02:44:05.093Z","sort":14,"slug":"self-improvement","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Training for Developer Role","description":"","public":false,"view":"grid","count":7,"cover":[],"expanded":false,"_id":25851931,"sort":5,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-09-23T04:22:20.131Z","created":"2022-07-13T16:15:57.380Z","lastUpdate":"2022-09-23T04:22:20.131Z","slug":"training-for-developer-role","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Research To Read Through","description":"","public":false,"view":"list","count":137,"cover":[],"expanded":false,"_id":25851970,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-10-24T14:22:38.983Z","created":"2022-07-13T16:20:15.608Z","lastUpdate":"2022-10-24T14:22:38.983Z","sort":2,"slug":"research-to-read-through","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Programming Languages","description":"","public":false,"view":"grid","count":2,"cover":[],"expanded":true,"_id":25869534,"sort":2,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-09-23T04:22:20.131Z","created":"2022-07-14T15:47:46.394Z","lastUpdate":"2022-09-26T04:20:06.488Z","slug":"programming-languages","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Metasploit Evasion","description":"Metasploit Evasion Writeups","public":true,"view":"grid","count":82,"cover":[],"expanded":false,"_id":25826921,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-11-29T06:30:33.849Z","created":"2022-07-12T14:52:17.429Z","lastUpdate":"2022-11-29T06:30:33.849Z","sort":1,"slug":"metasploit-evasion","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Maintaining OSS","description":"","public":false,"view":"grid","count":8,"cover":[],"expanded":false,"_id":27246991,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-12-19T16:57:31.784Z","created":"2022-09-01T14:49:24.456Z","lastUpdate":"2022-12-19T16:57:31.784Z","sort":1,"slug":"maintaining-oss","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Windows Internals","description":"","public":false,"view":"list","count":65,"cover":[],"expanded":false,"_id":25909719,"sort":0,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-11-29T21:23:59.645Z","created":"2022-07-16T15:06:44.722Z","lastUpdate":"2022-11-29T21:23:59.645Z","slug":"windows-internals","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Useful Administrative Tips","description":"","public":false,"view":"grid","count":12,"cover":[],"expanded":false,"_id":25910423,"sort":0,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-07-17T04:06:53.858Z","created":"2022-07-16T16:48:32.062Z","lastUpdate":"2022-09-22T14:13:42.359Z","slug":"useful-administrative-tips","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true}]}
For the second one here was the response:
curl -H "Authorization: Bearer *redacted*" https://api.raindrop.io/rest/v1/collections/childrens
{"result":true,"items":[{"title":"Ruby","description":"","public":false,"view":"list","count":9,"cover":[],"expanded":false,"_id":25869536,"sort":1,"parent":{"$ref":"collections","$id":25869534,"$db":""},"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-10-08T16:48:16.079Z","created":"2022-07-14T15:48:00.028Z","lastUpdate":"2022-10-08T16:48:16.079Z","slug":"ruby","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Go","description":"","public":false,"view":"list","count":6,"cover":[],"expanded":false,"_id":25869535,"sort":0,"parent":{"$ref":"collections","$id":25869534,"$db":""},"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2022-07-15T05:07:08.530Z","created":"2022-07-14T15:47:54.821Z","lastUpdate":"2022-09-22T04:47:37.618Z","slug":"go","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true}]}
from obsidian-raindrop-highlights-plugin.
@gwillcox-r7 thanks for your help. The code seems to work on nesting two layers of collections. Can you provide the API responses for more than two layers? Thanks.
from obsidian-raindrop-highlights-plugin.
@kaiiiz Sure give me a sec, I've got the following nesting structure atm:
Programming Languages
Go
Ruby
Self Improvement
Training for Developer Role
Useful Administrative Tips
That should hopefully provide enough nesting to test with, will upload the results here in a sec
from obsidian-raindrop-highlights-plugin.
The collections endpoint:
> curl -H "Authorization: Bearer *redacted*" https://api.raindrop.io/rest/v1/collections
{"result":true,"items":[{"title":"Archive","description":"","public":false,"view":"list","count":64,"cover":["https://up.raindrop.io/collection/thumbs/256/901/16/5d13a4304e76fcdf386389e9e5a47e95.png"],"expanded":false,"_id":25690116,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2023-03-18T21:10:14.837Z","created":"2022-07-03T21:11:41.767Z","lastUpdate":"2023-03-18T21:10:14.837Z","sort":25690116,"slug":"archive","color":"#1e76cf","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Programming Languages","description":"","public":false,"view":"grid","count":2,"cover":[],"expanded":true,"_id":25869534,"sort":2,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2023-03-14T20:34:23.295Z","created":"2022-07-14T15:47:46.394Z","lastUpdate":"2023-03-20T14:40:15.597Z","slug":"programming-languages","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Metasploit Evasion","description":"Metasploit Evasion Writeups","public":true,"view":"grid","count":82,"cover":[],"expanded":false,"_id":25826921,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2023-03-14T20:34:23.295Z","created":"2022-07-12T14:52:17.429Z","lastUpdate":"2022-11-29T06:30:33.849Z","sort":1,"slug":"metasploit-evasion","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Maintaining OSS","description":"","public":false,"view":"grid","count":8,"cover":[],"expanded":false,"_id":27246991,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2023-03-14T20:34:23.295Z","created":"2022-09-01T14:49:24.456Z","lastUpdate":"2022-12-19T16:57:31.784Z","sort":1,"slug":"maintaining-oss","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true}]}
Childrens endpoint:
> curl -H "Authorization: Bearer *redacted*" https://api.raindrop.io/rest/v1/collections/childrens
{"result":true,"items":[{"title":"Useful Administrative Tips","description":"","public":false,"view":"grid","count":12,"cover":[],"expanded":false,"_id":25910423,"sort":0,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2023-03-14T20:34:22.859Z","created":"2022-07-16T16:48:32.062Z","lastUpdate":"2023-03-20T14:38:56.381Z","slug":"useful-administrative-tips","parent":{"$ref":"collections","$id":25851931,"$db":""},"access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Training for Developer Role","description":"","public":false,"view":"grid","count":7,"cover":[],"expanded":true,"_id":25851931,"sort":0,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2023-03-14T20:34:23.295Z","created":"2022-07-13T16:15:57.380Z","lastUpdate":"2023-03-20T14:40:20.535Z","slug":"training-for-developer-role","parent":{"$ref":"collections","$id":25851968,"$db":""},"access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Go","description":"","public":false,"view":"list","count":6,"cover":[],"expanded":true,"_id":25869535,"sort":0,"parent":{"$ref":"collections","$id":25869534,"$db":""},"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2023-03-14T20:34:22.859Z","created":"2022-07-14T15:47:54.821Z","lastUpdate":"2023-03-20T14:40:16.760Z","slug":"go","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Ruby","description":"","public":false,"view":"list","count":9,"cover":[],"expanded":true,"_id":25869536,"sort":0,"parent":{"$ref":"collections","$id":25869535,"$db":""},"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2023-03-14T20:34:23.295Z","created":"2022-07-14T15:48:00.028Z","lastUpdate":"2023-03-20T14:40:17.396Z","slug":"ruby","access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true},{"title":"Self Improvement","description":"","public":false,"view":"grid","count":2,"cover":[],"expanded":true,"_id":25851968,"user":{"$ref":"users","$id":981098,"$db":""},"creatorRef":{"_id":981098,"name":"tekwizz123","email":""},"lastAction":"2023-03-14T20:34:22.859Z","created":"2022-07-13T16:20:14.291Z","lastUpdate":"2023-03-20T14:40:18.115Z","sort":0,"slug":"self-improvement","parent":{"$ref":"collections","$id":25869536,"$db":""},"access":{"for":981098,"level":4,"root":false,"draggable":true},"author":true}]}
from obsidian-raindrop-highlights-plugin.
I have the same problem and when I click 'sync' then I see the message:
Sync Raindrop collection X/Y failed. Cannot read properties of null (reading 'path')
I have that structure in rain:
X/Y/Z
Y and Z is folder.
Y and Z has bookmarks too.
Y has folder and bookmarks.
Z has only bookmarks.
In config I have checked checkbox only in
X/Y
from obsidian-raindrop-highlights-plugin.
Related Issues (20)
- Raindrop isn't syncing? HOT 2
- Manage items to be synced with tags HOT 7
- [FR] option to disable notification HOT 2
- Files are not renamed upon filename template edit HOT 2
- Error HOT 3
- Suddenly LF/CRLF issues HOT 2
- highlight URL variable - update HOT 1
- (newbie question) where can i find the template file to make changes? HOT 3
- HTML entities appearing on sync HOT 3
- Sync Raindrop collection failed: Request failed with status code 429 HOT 6
- metadata template not working?
- Get author name HOT 3
- can fetch collections but not bookmarks HOT 1
- Have folders per nested collections without explicit selection HOT 3
- Sync same files already in obsidian folder HOT 2
- Gracefully handle Raindrop tags containing whitespace characters HOT 1
- “Store the articles in collections folders” setting is ignored if “All bookmarks” is selected HOT 3
- Syncing not working HOT 2
- Syncing only partially sync all the bookmarks. HOT 3
- Quotation Marks are Missing in YAML Frontmatter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-raindrop-highlights-plugin.