-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
API call by any CNA:
GET /api/cve-id?time_reserved.gt=2025-01-01
Outcome:
HTTP/2 500
{"error":"SERVICE_NOT_AVAILABLE","message":"This service appears to not be available."}
This may be related to dateStr being out of scope on line 151:
cve-services/src/utils/utils.js
Lines 142 to 151 in cd41522
if (value) { | |
const dateStr = value[0] | |
// Make sure that the string passed is a valid date | |
if (DateTime.fromISO(dateStr.toString()).isValid) { | |
result = new Date(dateStr) | |
} | |
} else { | |
value = val.match(/^\d{4}-\d{2}-\d{2}$/) | |
/* eslint-disable-next-line */ | |
if ((value) && DateTime.fromISO(dateStr.toString()).isValid) { |
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Needs Triage