Closed probinso closed 6 months ago
Thanks for submitting an issue!
Strangely I can't seem to recreate this issue with the provided tests. I've gotten occasional timeouts that cause the searches to fail but otherwise can't get a 400 error response, Do you happen to have the 4xx error messages on hand?
=== short test summary info ===
FAILED tests/test_asf.py::test_sentinel_1_all - asf_search.exceptions.ASFSearch4xxError: HTTP 404: ['Concept with concept-id [G2179312981-ASF] and revision-id [1] does not exist.']
FAILED tests/test_asf.py::test_sentinel_1_split_2 - asf_search.exceptions.ASFSearch4xxError: HTTP 404: ['Concept with concept-id [G2179312981-ASF] and revision-id [1] does not exist.']
2 failed, 27 passed, 33 warnings in 133.65s (0:02:13)
This is updated with the timezone normalization
from datetime import datetime, timedelta, timezone
import asf_search as asf
XXX = datetime(2021, 12, 7, 10, 55, tzinfo=timezone.utc)
opts = dict(platform=asf.constants.SENTINEL1, start=XXX, end=XXX + timedelta(minutes=1))
results = asf.search(**opts)
When I update to the latest version of asf_search
I recieve a bit more detail in the error
ERROR:root:HTTP 404: ['Concept with concept-id [G2179312981-ASF] and revision-id [1] does not exist.']
ERROR:root:The asf-search module ecountered an error with CMR, and the following message was automatically reported to ASF:
"
Error Message: HTTP 404: ['Concept with concept-id [G2179312981-ASF] and revision-id [1] does not exist.']
User Agent: Python/3.10.11; requests/2.31.0; asf_search/7.0.6
Search Options: {
start: 2021-12-07T10:55:00Z
end: 2021-12-07T10:56:00Z
collections: ['C1205264459-ASF', 'C1205428742-ASF', 'C1208115009-ASF', 'C1208117434-ASF', 'C1212158318-ASF', 'C1212158326-ASF', 'C1212158327-ASF', 'C1212200781-ASF', 'C1212201032-ASF', 'C1212209035-ASF', 'C1212209075-ASF', 'C1212209226-ASF', 'C1212212493-ASF', 'C1212212560-ASF', 'C1212233976-ASF', 'C1214470488-ASF', 'C1214470496-ASF', 'C1214470532-ASF', 'C1214470533-ASF', 'C1214470561-ASF', 'C1214470576-ASF', 'C1214470682-ASF', 'C1214470732-ASF', 'C1214471197-ASF', 'C1214471521-ASF', 'C1214471960-ASF', 'C1214472336-ASF', 'C1214472977-ASF', 'C1214472978-ASF', 'C1214472994-ASF', 'C1214473165-ASF', 'C1214473170-ASF', 'C1215704763-ASF', 'C1216244348-ASF', 'C1216244585-ASF', 'C1216244586-ASF', 'C1216244587-ASF', 'C1216244588-ASF', 'C1216244589-ASF', 'C1216244590-ASF', 'C1216244591-ASF', 'C1216244592-ASF', 'C1216244593-ASF', 'C1216244594-ASF', 'C1216244595-ASF', 'C1216244596-ASF', 'C1216244597-ASF', 'C1216244598-ASF', 'C1216244599-ASF', 'C1216244600-ASF', 'C1216244601-ASF', 'C1225776654-ASF', 'C1225776655-ASF', 'C1225776657-ASF', 'C1225776658-ASF', 'C1225776659-ASF', 'C1234413228-ASFDEV', 'C1234413229-ASFDEV', 'C1234413230-ASFDEV', 'C1234413231-ASFDEV', 'C1234413232-ASFDEV', 'C1234413233-ASFDEV', 'C1234413234-ASFDEV', 'C1234413235-ASFDEV', 'C1234413236-ASFDEV', 'C1234413237-ASFDEV', 'C1234413238-ASFDEV', 'C1234413239-ASFDEV', 'C1234413240-ASFDEV', 'C1234413241-ASFDEV', 'C1234413242-ASFDEV', 'C1234413243-ASFDEV', 'C1234413244-ASFDEV', 'C1234413245-ASFDEV', 'C1234413246-ASFDEV', 'C1234413247-ASFDEV', 'C1234413248-ASFDEV', 'C1234413249-ASFDEV', 'C1234413250-ASFDEV', 'C1234413251-ASFDEV', 'C1234413252-ASFDEV', 'C1234413253-ASFDEV', 'C1234413254-ASFDEV', 'C1234413255-ASFDEV', 'C1234413256-ASFDEV', 'C1234413257-ASFDEV', 'C1234413258-ASFDEV', 'C1234413259-ASFDEV', 'C1234413260-ASFDEV', 'C1234413261-ASFDEV', 'C1234413262-ASFDEV', 'C1234413263-ASFDEV', 'C1240784657-ASFDEV', 'C1244552887-ASFDEV', 'C1244598379-ASFDEV', 'C1245953394-ASF', 'C1257024016-ASF', 'C1257175154-ASFDEV', 'C1257995185-ASF', 'C1257995186-ASF', 'C1258354200-ASF', 'C1258354201-ASF', 'C1259974840-ASF', 'C1259976861-ASF', 'C1259981910-ASF', 'C1259982010-ASF', 'C1260721853-ASF', 'C1260721945-ASF', 'C1260726384-ASF', 'C1266376001-ASF', 'C1327985571-ASF', 'C1327985578-ASF', 'C1327985579-ASF', 'C1327985617-ASF', 'C1327985619-ASF', 'C1327985644-ASF', 'C1327985645-ASF', 'C1327985646-ASF', 'C1327985647-ASF', 'C1327985650-ASF', 'C1327985651-ASF', 'C1327985660-ASF', 'C1327985661-ASF', 'C1327985674-ASF', 'C1327985697-ASF', 'C1327985739-ASF', 'C1327985740-ASF', 'C1327985741-ASF', 'C1595422627-ASF', 'C1595765183-ASF', 'C1596065639-ASF', 'C1596065640-ASF', 'C1596065641-ASF', 'C2450786986-ASF', 'C2709161906-ASF', 'C2777436413-ASF', 'C2777443834-ASF', 'C2795135174-ASF', 'C2795135668-ASF', 'C2803501097-ASF', 'C2803501758-ASF']
}
"If you have any questions email uso@asf.alaska.edu
Sorry for the late reply, and thank you for posting the error message! We've determined the issue and are passing it along to the appropriate team.
We'll leave this issue open until the problem granule is confirmed fixed!
It seems like this issue has been fixed, would you mind confirming?
Looks like it was fixed.
Describe the bug
asf_search.exceptions.ASFSearch4xxError
thrown whenasf.search(platform=asf.SENTINEL1, start=start, end=end)
spansdatetime.datetime(year=2021, month=12, day=7, hour=10, minute=55)
To Reproduce Steps to reproduce the behavior:
Expected behavior This search should complete without throwing an error
Desktop (please complete the following information):
Running on Mac OSX
Additional context
I originally thought this had to do with
sentinel-1b
failing in December of 2021, but that failure was on the 23rd.