Skip to content

Cannot load configuration file: invalid type: integer 200, expected a string #1338

@nvuillam

Description

@nvuillam

Example in documentation contains the following example:

image

But when using the latest version, we have the following error:

 Error:  Error while loading config: Cannot load configuration file `/github/workspace/.github/linters/lychee.toml`: Failed to parse configuration file
  
  Caused by:
      TOML parse error at line 32, column 11
         |
      32 | accept = [200, 206, 429]
         |           ^^^
      invalid type: integer `200`, expected a string

Out lychee.toml file contains:

# Comma-separated list of accepted status codes for valid links.
accept = [200, 206, 429]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions