LibraryOfCongress / api.congress.gov

congress.gov API
605 stars 38 forks source link

(committee list): 500 `Reverse for 'committee_details' with keyword arguments '{'systemCode': 'no NACO', 'chamber': 'house'}' not found.` #198

Closed ryparker closed 5 months ago

ryparker commented 5 months ago

500 response when requesting committee list

example:

curl https://api.congress.gov/v3/committee?api_key=<API_KEY>&format=json&limit=250&offset=250

Response - 500:

{
  "error": "Reverse for 'committee_details' with keyword arguments '{'systemCode': 'no NACO', 'chamber': 'house'}' not found. 2 pattern(s) tried: ['v3/committee/(?P<chamber>(house|senate|joint|House|Senate|Joint))/(?P<systemCode>([A-Za-z0-9]+))(?P<file_ext>(\\\\.xml|\\\\.json|/))?$', 'v2/committee/(?P<chamber>(house|senate|joint|House|Senate|Joint))/(?P<systemCode>([a-z0-9]+))(?P<file_ext>(\\\\.xml|\\\\.json|/))?$'] (NoReverseMatch)",
  "request": {
    "contentType": "application/json",
    "format": "json"
  }
}
ryparker commented 5 months ago

I narrowed down one of the culprits. Not sure if it's the only instance of the issue.

curl https://api.congress.gov/v3/committee?api_key=<API_KEY>&format=json&limit=1&offset=466

mqueen73 commented 5 months ago

We have deleted the invalid committee authority record that was causing the error. Please let us know if you have any further issues. Thank you.

ryparker commented 5 months ago

Looks like it's fixed. Thanks!

mqueen73 commented 5 months ago

Excellent! If you encounter the similar issue again, please let us know. Thank you, Mike