POST /reload can return null instead of GeoJSON
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start at web/app.py:257 and trace POST /reload through reload_data()'s empty-features branch and the cache calls. Verify the fresh-deployment case where FIRMS returns zero detections, and ensure the endpoint returns a GeoJSON FeatureCollection rather than null.
Written by the indexing model from the issue text.
Description
File: web/app.py:257
POST /reload returns JSONResponse(cache.get_current()) without checking for None.
Failure scenario: On a fresh deployment where Valkey has never been populated and FIRMS returns zero detections, reload_data()'s empty-features branch never calls cache.set_current(), so get_current() is still None. The route returns HTTP 200 with a literal null body instead of a GeoJSON FeatureCollection, breaking any caller (including a scheduled mise run reload) expecting GeoJSON.
Category: correctness
- Dominant language
- Python
- Stars
- 5
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from kjaymiller/fire-map
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
kjaymiller/fire-map#32 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
kjaymiller/fire-map#31 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kjaymiller/fire-map#29 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
kjaymiller/fire-map#28 ·
-
docker docker-compose
Difficulty 4/5 3-5 days Newbie friendliness 30/100
kjaymiller/fire-map#23 ·
All issues in kjaymiller/fire-map
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100