Skip to content

Fixing 'date is too far in the past' API error#13

Open
arithmetric wants to merge 1 commit intocronofy:masterfrom
arithmetric:fix_date_too_far_in_past
Open

Fixing 'date is too far in the past' API error#13
arithmetric wants to merge 1 commit intocronofy:masterfrom
arithmetric:fix_date_too_far_in_past

Conversation

@arithmetric
Copy link
Copy Markdown

This PR updates the default dates used with the availability API to avoid a 'date is too far in the past' error from the Cronofy API.

Example errors in API response:

{
    "errors": {
        "query_periods[0].start": [
            {
                "key": "errors.min_date_exceeded",
                "description": "date is too far in the past"
            }
        ],
        "query_periods[1].start": [
            {
                "key": "errors.min_date_exceeded",
                "description": "date is too far in the past"
            }
        ]
    }
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant