Forien / foundryvtt-forien-quest-log

This module provides comprehensive Quest Log system for players and Game Masters to use with Foundry Virtual Tabletop
MIT License
21 stars 34 forks source link

[BUG] Unexpected end of JSON input error after saving description of a quest #103

Open mvanduijvenvoorde opened 3 years ago

mvanduijvenvoorde commented 3 years ago

Module Version: v0.5.1

Describe the bug

quest.mjs:408 SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Function.getContent (quest.mjs:404)
    at quest.mjs:432
    at Array.forEach (<anonymous>)
    at Function.getQuests (quest.mjs:431)
    at QuestLog.getData (quest-log.mjs:47)
    at QuestLog._render (foundry.js:4434)
    at QuestLog.render (foundry.js:4404)
    at Function.refreshQuestLog (socket.mjs:7)
    at QuestPreview.refresh (quest-preview.mjs:189)

To Reproduce Steps to reproduce the behavior:

  1. Go to a Quest / Make a new Quest
  2. Click on Description, add some text. Save the text.
  3. See error

Expected behavior No errors when editing a quest and saving the description.

Screenshots

Browser: Foundry client

Foundry Version: Foundry: 0.7.5

Game System: DnD5e: 0.98

mvanduijvenvoorde commented 3 years ago

Seems to be related to https://github.com/Forien/foundryvtt-forien-quest-log/issues/96