Internal Server Error from /jobs when end < start

Open
#2,433 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
aws, python
Domain
api

Research direction

Start at the /jobs endpoint and trace how it handles the start and end query parameters when end is earlier than start. Reproduce the reported request and inspect the endpoint's existing tests for date-range validation. Done means this input returns an appropriate client error instead of HTTP 500, with a test covering the case.

Written by the indexing model from the issue text.

Description

The /jobs endpoint returns an HTTP 500 internal server error when providing both the start and end parameters with end < start.

https://hyp3-api.asf.alaska.edu/jobs?start=2024-09-26T00:00:01Z&end=2024-09-26T00:00:00Z

Screenshot from 2024-09-26 15-30-28

Dominant language
Python
Stars
53
Forks
13
Avg merge
1d 2h
Merged PRs (30d)
20

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ASFHyP3/hyp3

All issues in ASFHyP3/hyp3

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.