Skip to content

JSON import: client error stack=Error: marked(): input parameter is undefined or null #2286

Description

@alwarnecke

Describe the current behavior

I am in the process of importing a JSON file. The import itself works if I do nothing and leave all the default import options. When clicking "Import Options" on one of the JSON tables, I get the below screenshot error.

Running docker logs grist returns the following:

2026-04-22 14:45:35.544 - warn: client error stack=Error: marked(): input parameter is undefined or null
    at ae.parse (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:1363026)
    at ce (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:1364036)
    at https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:914827
    at https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:914860
    at https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:849217
    at Y (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:846137)
    at J (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:846170)
    at https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:849201
    at Re (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:848570)
    at Pe (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:848444)
    at Re (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:848614)
    at Pe (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:848444)
    at Be (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:848489)
    at Te (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:847842)
    at https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:855908
    at https://${GRIST_DOMAIN}/v/unknown/GristDoc.bundle.js:1:113335, message=marked(): input parameter is undefined or null
Please report this to https://github.com/markedjs/marked., docId=v95SiHsxqaq9BuGJvX9Gjp, page=https://${GRIST_DOMAIN}/o/docs/v95SiHsxqaq9/finance, language=en-US, platform=Win32, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36, org=docs, email=(redacted), userId=6, altSessionId=cWXSksHQkU6Cku5bJNdaZD

Screenshot:

Image

Steps to reproduce

  1. Add New --> Import from file --> pick JSON file
  2. Click "Import Options" in the upper right of any table

Describe the expected behavior

The import options modal should display

Where have you encountered this bug?

Instance information (when self-hosting only)

  • Grist instance:

    • Version: 1.7.12
    • URL (if it's OK for you to share it): prefer not to. All other functions of Grist are working OK for me.
    • Installation mode: docker compose
    • Architecture: unsure
  • Browser name, version and platforms on which you could reproduce the bug: Chrome, Windows 10, Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36

  • Link to browser console log if relevant:

GristWSConnection.ts:106 GristWSConnection: onmessage (143 bytes)
errors.ts:130 ERROR: Error: marked(): input parameter is undefined or null
Please report this to https://github.com/markedjs/marked.
    at ae.parse (Instance.ts:257:35)
    at ce (marked.ts:11:27)
    at markdown.ts:65:5
    at markdown.ts:28:48
    at domComputed.ts:93:56
    at Y (binding.ts:69:3)
    at J (binding.ts:79:25)
    at domComputed.ts:92:5
    at Re (domImpl.ts:167:30)
    at Pe (domImpl.ts:146:5)
    at Re (domImpl.ts:173:5)
    at Pe (domImpl.ts:146:5)
    at Be (domImpl.ts:158:12)
    at Te (domImpl.ts:73:10)
    at styled.ts:95:41
    at ParseOptions.ts:82:9
reportError @ errors.ts:130
domImpl.ts:161 Uncaught Error: marked(): input parameter is undefined or null
Please report this to https://github.com/markedjs/marked.
    at ae.parse (Instance.ts:257:35)
    at ce (marked.ts:11:27)
    at markdown.ts:65:5
    at markdown.ts:28:48
    at domComputed.ts:93:56
    at Y (binding.ts:69:3)
    at J (binding.ts:79:25)
    at domComputed.ts:92:5
    at Re (domImpl.ts:167:30)
    at Pe (domImpl.ts:146:5)
    at Re (domImpl.ts:173:5)
    at Pe (domImpl.ts:146:5)
    at Be (domImpl.ts:158:12)
    at Te (domImpl.ts:73:10)
    at styled.ts:95:41
    at ParseOptions.ts:82:9
  • Link to server log if relevant:
2026-04-22 14:45:35.544 - warn: client error stack=Error: marked(): input parameter is undefined or null
    at ae.parse (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:1363026)
    at ce (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:1364036)
    at https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:914827
    at https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:914860
    at https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:849217
    at Y (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:846137)
    at J (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:846170)
    at https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:849201
    at Re (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:848570)
    at Pe (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:848444)
    at Re (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:848614)
    at Pe (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:848444)
    at Be (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:848489)
    at Te (https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:847842)
    at https://${GRIST_DOMAIN}/v/unknown/main.bundle.js:2:855908
    at https://${GRIST_DOMAIN}/v/unknown/GristDoc.bundle.js:1:113335, message=marked(): input parameter is undefined or null
Please report this to https://github.com/markedjs/marked., docId=v95SiHsxqaq9BuGJvX9Gjp, page=https://${GRIST_DOMAIN}/o/docs/v95SiHsxqaq9/finance, language=en-US, platform=Win32, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36, org=docs, email=(redacted), userId=6, altSessionId=cWXSksHQkU6Cku5bJNdaZD

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions