Skip to content

Inso CLI v11.0.2 gives error on v5 exported collection #8599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 of 4 tasks
Ilie-c opened this issue Apr 9, 2025 · 1 comment
Open
2 of 4 tasks

Inso CLI v11.0.2 gives error on v5 exported collection #8599

Ilie-c opened this issue Apr 9, 2025 · 1 comment
Assignees
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@Ilie-c
Copy link

Ilie-c commented Apr 9, 2025

Expected Behavior

Exported collection to be fully run and give response based on the data sent

Actual Behavior

Verbose

Failed to import Insomnia v5 data e [ZodError]: [
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "object",
            "received": "undefined",
            "path": [
              "collection",
              0,
              "reflectionApi"
            ],
            "message": "Required"
          },
          {
            "code": "invalid_type",
            "expected": "undefined",
            "received": "array",
            "path": [
              "collection",
              0,
              "children"
            ],
            "message": "Expected undefined, received array"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "undefined",
            "path": [
              "collection",
              0,
              "method"
            ],
            "message": "Required"
          },
          {
            "code": "invalid_type",
            "expected": "undefined",
            "received": "array",
            "path": [
              "collection",
              0,
              "children"
            ],
            "message": "Expected undefined, received array"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "undefined",
            "received": "array",
            "path": [
              "collection",
              0,
              "children"
            ],
            "message": "Expected undefined, received array"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_union",
            "unionErrors": [
              {
                "issues": [
                  {
                    "code": "invalid_type",
                    "expected": "object",
                    "received": "undefined",
                    "path": [
                      "collection",
                      0,
                      "children",
                      1,
                      "reflectionApi"
                    ],
                    "message": "Required"
                  },
                  {
                    "code": "invalid_type",
                    "expected": "undefined",
                    "received": "string",
                    "path": [
                      "collection",
                      0,
                      "children",
                      1,
                      "method"
                    ],
                    "message": "Expected undefined, received string"
                  }
                ],
                "name": "ZodError"
              },
              {
                "issues": [
                  {
                    "code": "invalid_type",
                    "expected": "string",
                    "received": "undefined",
                    "path": [
                      "collection",
                      0,
                      "children",
                      1,
                      "body",
                      "params",
                      0,
                      "value"
                    ],
                    "message": "Required"
                  }
                ],
                "name": "ZodError"
              },
              {
                "issues": [
                  {
                    "code": "invalid_type",
                    "expected": "undefined",
                    "received": "string",
                    "path": [
                      "collection",
                      0,
                      "children",
                      1,
                      "method"
                    ],
                    "message": "Expected undefined, received string"
                  }
                ],
                "name": "ZodError"
              },
              {
                "issues": [
                  {
                    "code": "invalid_type",
                    "expected": "undefined",
                    "received": "string",
                    "path": [
                      "collection",
                      0,
                      "children",
                      1,
                      "method"
                    ],
                    "message": "Expected undefined, received string"
                  },
                  {
                    "code": "invalid_type",
                    "expected": "undefined",
                    "received": "string",
                    "path": [
                      "collection",
                      0,
                      "children",
                      1,
                      "url"
                    ],
                    "message": "Expected undefined, received string"
                  }
                ],
                "name": "ZodError"
              }
            ],
            "path": [
              "collection",
              0,
              "children",
              1
            ],
            "message": "Invalid input"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "collection",
      0
    ],
    "message": "Invalid input"
  }
]

Normal response

 [
    {
      code: 'invalid_union',
      unionErrors: [Array],
      path: [Array],
      message: 'Invalid input'
    }
  ],
  addIssue: [Function (anonymous)],
  addIssues: [Function (anonymous)],
  errors: [
    {
      code: 'invalid_union',
      unionErrors: [Array],
      path: [Array],
      message: 'Invalid input'
    }
  ]
}

 FATAL  Expected an Insomnia v4 export file; unexpected data found in Insomnia_API_Tests.yaml.

Reproduction Steps

  1. Export a v5 insomnia collection, version 11.0.2
  2. run the collection through inso cli

Is there an existing issue for this?

Which sync method do you use?

  • Git sync.
  • Insomnia Cloud sync.
  • Local only

Additional Information

Before on version 11.0.0 I was getting sometimes an issue that it couldn't find any requests, I am unsure if it's somewhat related.

Insomnia Version

11.0.2

What operating system are you using?

Windows

Operating System Version

Win 11 23H2

Installation method

Dicrect donwload v 10 then autoupdate through integrated function

Last Known Working Insomnia version

11.0.0

@Ilie-c Ilie-c added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Apr 9, 2025
@Ilie-c
Copy link
Author

Ilie-c commented Apr 10, 2025

Issue related with 8504

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

2 participants