Skip to content

Hard to understand error thrown when NaN provided #737

@jirimoravcik

Description

@jirimoravcik

When you call e.g. DatasetClient.listItems and pass limit: NaN into the options, you get a hard-to-understand error:

Expected property `limit` to be of type `number` but received type `number` in object `options`

It would be nice to throw an error that would tell the user what's the problem

Reported on Slack https://apify.slack.com/archives/C0L33UM7Z/p1756383790250069

Metadata

Metadata

Assignees

No one assigned

    Labels

    low priorityLow priority issues to be done eventually.t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions