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

/committee/{chamber}/{committeeCode} only works for subcommittees #180

Closed
Narlotl opened this issue Nov 29, 2023 · 1 comment
Closed

/committee/{chamber}/{committeeCode} only works for subcommittees #180

Narlotl opened this issue Nov 29, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@Narlotl
Copy link

Narlotl commented Nov 29, 2023

The response for the Education and the Workforce Committee (/committee/house/hsed00), which has no parent is

{
    "error": "'NoneType' object has no attribute 'in_current_congress' (AttributeError)",
    "request": {
        "chamber": "house",
        "contentType": "application/json",
        "format": "json",
        "systemCode": "hsed00"
    }
}

The response for the Workforce Protections Subcommittee (/committee/house/hsed10) has a response

{
    "committee": {
        "bills": {
            "count": 1177,
            "url": "https://api.congress.gov/v3/committee/house/hsed10/bills?format=json"
        }
        ...
    }
}

This result is consistent across all committees in Congress 118, if it has a parent, the status is 200, otherwise it's 500.
@apreiter18 apreiter18 added the bug Something isn't working label Nov 30, 2023
@rbram
Copy link
Collaborator

rbram commented Nov 30, 2023

Hello. Thanks for your feedback. We have replicated this issue and have created a bug ticket to fix it. Please monitor the change log for updates on this.

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

3 participants