Skip to content
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

(bill details): requesting a bill that does not exist returns 500 #232

Open
ryparker opened this issue Apr 21, 2024 · 1 comment
Open

(bill details): requesting a bill that does not exist returns 500 #232

ryparker opened this issue Apr 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ryparker
Copy link
Contributor

When requesting details for a bill that does not exist the API returns a 500. I expected this to return 404.

e.g.

curl --location 'https://api.congress.gov/v3/bill/118/s/2?format=json&api_key=<API_KEY>'

Returns 500:

{
    "error": "cannot access local variable 'bill' where it is not associated with a value (UnboundLocalError)",
    "request": {
        "billNumber": "2",
        "billType": "s",
        "congress": "118",
        "contentType": "application/json",
        "format": "json"
    }
}
@apreiter18 apreiter18 added the bug Something isn't working label Apr 22, 2024
@apreiter18 apreiter18 added this to the Near term backlog milestone Apr 22, 2024
@apreiter18
Copy link
Collaborator

Thanks, @ryparker - we are investigating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants