Skip to content
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

Bugfix: Handle naive datetimes in REST API #12248

Merged
merged 1 commit into from
Nov 11, 2020
Merged

Bugfix: Handle naive datetimes in REST API #12248

merged 1 commit into from
Nov 11, 2020

Conversation

ephraimbuddy
Copy link
Contributor

@ephraimbuddy ephraimbuddy commented Nov 10, 2020

Close: #12201

Triggering a dag run with naive datetime returns an HTML page instead of json.
Also Invalid datetime returns an HTML page.
Same issue when making requests against Dagruns batch endpoint, Taskinstances batch, set and clear endpoints.

This PR fixes it


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Nov 10, 2020
@kaxil kaxil requested a review from mik-laj November 10, 2020 22:32
@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Nov 10, 2020
@github-actions
Copy link

The PR should be OK to be merged with just subset of tests as it does not modify Core of Airflow. The committers might merge it or can add a label 'full tests needed' and re-run it to run all tests if they see it is needed!

@mik-laj mik-laj merged commit 7478e18 into apache:master Nov 11, 2020
@ephraimbuddy ephraimbuddy deleted the check-naive-datetime branch November 11, 2020 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API okay to merge It's ok to merge this PR as it does not require more tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(REST API)Triggering a dagrun with naive datetime raises an html page instead of json
3 participants