coddingtonbear / obsidian-local-rest-api

Unlock your automation needs by interacting with your notes in Obsidian over a secure REST API.
MIT License
607 stars 56 forks source link

Cannot read properties of undefined (reading 'getDailyNoteSettings') when querying /periodic/daily #93

Closed lstep closed 8 months ago

lstep commented 8 months ago

Using version 2.0.3, when running a GET (same for PATCH) on /periodic/daily, returns an error. It was working fine before.

curl -X 'GET' \
  'http://127.0.0.1:27123/periodic/daily/' \
  -H 'accept: text/markdown' \
  -H 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxx'

Got:

{
  "message": "Internal Server Error\nCannot read properties of undefined (reading 'getDailyNoteSettings')",
  "errorCode": 50000
}
coddingtonbear commented 8 months ago

Oh, interesting! That's totally not happening in my development vault, but I did just create a new vault and see exactly the same error now. Let me dig into this a bit to see what I can figure out.

coddingtonbear commented 8 months ago

This looks like it's related to some changes in esbuild (the bundler we use); so I've reverted to an earlier version of esbuild and re-published as v2.0.4. Things look like they work just fine now!