obsidian-writing-goals icon indicating copy to clipboard operation
obsidian-writing-goals copied to clipboard

Error logs when using the processFrontmatter API

Open FeralFlora opened this issue 1 year ago • 2 comments

I get many instances of this error, whenever I run my property processing script that uses processFrontmatter:

Uncaught (in promise) SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at WritingGoalsFile.loadJson (file.ts:15:21)
    at async GoalHistoryHelper.loadHistory (history.ts:39:16)
    at async GoalHistoryHelper.todaysGoalItem (history.ts:34:29)
    at async GoalHistoryHelper.updateGoalForToday (history.ts:42:20)
    at async GoalHelper.createGoal (goal-helper.ts:25:9)
    at async GoalHelper.updateGoalsFromSettings (goal-helper.ts:86:26)
    at async WritingGoals.loadNoteGoalData (plugin:writing-goals:22339:9)
    at async eval (plugin:writing-goals:22217:13)

See screenshot:

image

FeralFlora avatar Feb 15 '24 22:02 FeralFlora