Skip to content

[BUG] Cannot read properties of undefined (reading 'start') #77

Description

@Rolv-Apneseth

Describe the bug
First, thank you for making this.

As for the issue, while running linkspector check on a json file, I am getting the following error:

💥 Error: Cannot read properties of undefined (reading 'start')

To Reproduce
Running linkspector check with the following minimal json file causes it for me:

{
    "images": [
        "https://cdn.britannica.com/75/178475-050-E9212E3D/Pyramid-of-Khufu-Giza-Egypt.jpg"
    ]
}

The issue does not happen when I remove the array and just have "images": "..." directly.

Expected behavior
I would expect this to work, but a better error message to give a better idea of what the actual issue is, or at least a line number pointing to the offending link, would be nice too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions