-
Notifications
You must be signed in to change notification settings - Fork 46
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
(nomination nominees): returns 500 get() returned more than one NominationPosition -- it returned 2!
#251
Comments
Hi @ryparker - I am doing some digging into these two examples you cited. A few things:
Please feel free to report any other items in this Git issue. Thank you! |
Ah looks like that was an error on my side. Thanks. |
Actually this seems to be an error when querying nomination nominees. Request the details of the nomination: curl --location 'https://api.congress.gov/v3/nomination/117/2691?api_key=<API_KEY>' Returns a list of 3 nominees, 2 of them have the same ordinal of {
"nomination": {
"actions": {
"count": 4,
"url": "https://api.congress.gov/v3/nomination/117/2691/actions?format=json"
},
"authorityDate": "2022-12-08",
"citation": "PN2691",
"committees": {
"count": 1,
"url": "https://api.congress.gov/v3/nomination/117/2691/committees?format=json"
},
"congress": 117,
"isList": true,
"latestAction": {
"actionDate": "2022-12-08",
"text": "Confirmed by the Senate by Voice Vote."
},
"nominees": [
{
"introText": "THE FOLLOWING NAMED OFFICERS OF THE COAST GUARD PERMANENT COMMISSIONED TEACHING STAFF FOR APPOINTMENT IN THE UNITED STATES COAST GUARD TO THE GRADE INDICATED UNDER TITLE 14, U.S.C., SECTIONS 1944 AND 2126:",
"nomineeCount": 3,
"ordinal": 2,
"organization": "Coast Guard",
"positionTitle": "Commander",
"url": "https://api.congress.gov/v3/nomination/117/2691/2?format=json"
},
{
"introText": "THE FOLLOWING NAMED OFFICERS OF THE COAST GUARD PERMANENT COMMISSIONED TEACHING STAFF FOR APPOINTMENT IN THE UNITED STATES COAST GUARD TO THE GRADE INDICATED UNDER TITLE 14, U.S.C., SECTIONS 1944 AND 2126:",
"nomineeCount": 3,
"ordinal": 1,
"organization": "Coast Guard",
"positionTitle": "COMMANDER",
"url": "https://api.congress.gov/v3/nomination/117/2691/1?format=json"
},
{
"introText": "THE FOLLOWING NAMED OFFICERS OF THE COAST GUARD PERMANENT COMMISSIONED TEACHING STAFF FOR APPOINTMENT IN THE UNITED STATES COAST GUARD TO THE GRADE INDICATED UNDER TITLE 14, U.S.C., SECTIONS 1944 AND 2126:",
"nomineeCount": 2,
"ordinal": 1,
"organization": "Coast Guard",
"positionTitle": "Captain",
"url": "https://api.congress.gov/v3/nomination/117/2691/1?format=json"
}
],
"number": 2691,
"partNumber": "00",
"receivedDate": "2022-10-11",
"updateDate": "2023-10-13T12:38:59Z"
},
"request": {
"congress": "117",
"contentType": "application/json",
"format": "json",
"number": "2691"
}
} Then when you request the duplicated ordinal
Response:
Same scenario for 1220, with ordinal 1, in 117th congress |
get() returned more than one NominationPosition -- it returned 2!
get() returned more than one NominationPosition -- it returned 2!
Requesting the nomination 2691 of the 117th congress return a 500 error:
curl --location 'https://api.congress.gov/v3/nomination/117/2691/1?format=json&limit=250&offset=0&api_key=<API_KEY>'
Response 500:
This also occurred with the following
The text was updated successfully, but these errors were encountered: