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

(/related/*/BILLS, /packages/*/summary): missing text versions #148

Open
ryparker opened this issue Mar 29, 2024 · 5 comments
Open

(/related/*/BILLS, /packages/*/summary): missing text versions #148

ryparker opened this issue Mar 29, 2024 · 5 comments
Assignees

Comments

@ryparker
Copy link

HJRES 108 from 118th congress is missing text versions in the related bills response.

curl --location 'https://api.govinfo.gov/related/BILLSTATUS-118hjres108/BILLS' \
--header 'X-Api-Key:<API_KEY>'

response:

{
    "message": "There are either no related documents available for this resource at this time, or the relationship has not been defined yet. If you know there are related documents that should be available for this resource,check again later or please check the https://www.github.com/usgpo/api repository to see the status of available relationships and submit an issue request as appropriate.",
    "results": [],
    "relatedId": "BILLSTATUS-118hjres108"
}

However the congress.gov API returns the IH text version.

Here's the PDF: https://www.congress.gov/118/bills/hjres108/BILLS-118hjres108ih.pdf

@jonquandt jonquandt self-assigned this Apr 1, 2024
@jonquandt
Copy link
Member

Good morning - thank you for pointing this issue out. We have reprocessed the BILLS package and it now appears that the error response no longer appears.

{
    "results": [{
        "dateIssued": "2024-01-30",
        "billVersion": "ih",
        "packageId": "BILLS-118hjres108ih",
        "packageLink": "https://api.govinfo.gov/packages/BILLS-118hjres108ih/summary",
        "billVersionLabel": "Introduced in House",
        "lastModified": "2024-01-31T08:19:33Z"
    }],
    "relatedId": "BILLSTATUS-118hjres108"
}

@ryparker
Copy link
Author

ryparker commented Apr 2, 2024

Thanks!

@ryparker ryparker closed this as completed Apr 2, 2024
@ryparker
Copy link
Author

ryparker commented Apr 2, 2024

Looks like there's a few more instances of this issue.

From 118th congress:

hjres107
hres986
hres984
hres985
s3651
hr7051
hr7027
hr7025
hr7020
hr7019
hr7017
hr7022
hr7018
hr6560

@ryparker ryparker reopened this Apr 2, 2024
@ryparker
Copy link
Author

ryparker commented Apr 3, 2024

Here's a more complete list from the 118th congress. All 377 of these return 0 results when requesting text-versions using the /related/BILLSTATUS-*/BILLS API.

s4073
s4070
s4069
s4071
s4066
s4068
s4067
s4062
s4065
s4063
s4064
s4058
s4057
s4059
s4055
s4061
s4056
s4060
s4054
s4052
s4053
s4049
s4048
s4047
s4051
s4045
s4043
s4042
s4044
s4041
s4039
s4037
s4036
s4046
s4040
s4034
s4033
s4038
s4030
s4029
s4032
s4031
s4028
s4026
s4025
s4023
s4024
s4021
s4035
s4022
s4019
s4018
s4017
s4020
s4015
s4014
s4027
s4012
s4010
s4011
s4009
s4007
s4008
s4013
s4004
s4016
s4005
s4001
s4000
s4002
s4006
s3999
s3997
s3996
s3995
s4003
s3993
s3992
s3991
s3994
s3990
s3989
s3988
s3987
s3986
s3985
s3983
s3984
s3982
s3998
s3980
s3981
s3979
s3978
s3977
s3976
s3974
s3973
s3971
s3970
s3969
s3968
s3975
s3967
s3966
s3972
s3950
s3651
sjres69
sjres68
sjres67
sjres66
sjres63
sjres62
sconres29
sres621
sres620
sres619
sres617
sres616
sres615
sres618
sres613
sres611
sres610
sres612
sres609
sres607
sres606
sres604
sres603
sres602
sres599
sres597
sres593
sres591
sres585
sres579
sres575
sres576
sres574
sres568
sres567
sres566
sres560
sres557
sres556
sres555
sres553
sres552
sres550
sres544
sres542
sres532
sres522
sres512
sres496
sres493
sres328
sres319
sres121
sres119
sres115
sres105
hjres76
hjres25
hjres123
hjres122
hjres121
hjres115
hjres114
hjres116
hjres111
hjres108
hjres107
hconres90
hconres89
hconres33
hconres102
hres999
hres996
hres992
hres986
hres985
hres984
hres969
hres735
hres641
hres600
hres542
hres389
hres324
hres251
hres237
hres228
hres1110
hres1109
hres1108
hres1107
hres1104
hres1089
hres108
hres1061
hres1050
hres1079
hres1019
hres1012
hres1004
hres1002
hr7852
hr7849
hr7851
hr7850
hr7846
hr7845
hr7844
hr7847
hr7842
hr7841
hr7848
hr7840
hr7839
hr7843
hr7838
hr7837
hr7836
hr7834
hr7833
hr7835
hr7832
hr7830
hr7831
hr7829
hr7827
hr7828
hr7826
hr7824
hr7825
hr7823
hr7822
hr7820
hr7821
hr7818
hr7817
hr7819
hr7816
hr7815
hr7813
hr7814
hr7810
hr7812
hr7811
hr7807
hr7809
hr7808
hr7804
hr7806
hr7803
hr7801
hr7805
hr7800
hr7802
hr7799
hr7798
hr7796
hr7795
hr7794
hr7793
hr7791
hr7792
hr7797
hr7790
hr7787
hr7786
hr7789
hr7788
hr7784
hr7785
hr7781
hr7783
hr7780
hr7779
hr7778
hr7782
hr7776
hr7777
hr7775
hr7772
hr7773
hr7771
hr7770
hr7769
hr7767
hr7766
hr7774
hr7765
hr7768
hr7763
hr7762
hr7764
hr7760
hr7758
hr7759
hr7757
hr7756
hr7761
hr7755
hr7754
hr7753
hr7752
hr7751
hr7749
hr7750
hr7748
hr7746
hr7747
hr7745
hr7744
hr7743
hr7741
hr7740
hr7739
hr7738
hr7735
hr7742
hr7736
hr7731
hr7732
hr7733
hr7730
hr7728
hr7729
hr7727
hr7726
hr7724
hr7725
hr7721
hr7723
hr7722
hr7720
hr7718
hr7719
hr7717
hr7716
hr7714
hr7715
hr7713
hr7712
hr7711
hr7710
hr7709
hr7708
hr7705
hr7707
hr7704
hr7706
hr7703
hr7699
hr7686
hr7609
hr7603
hr7590
hr7587
hr7569
hr7558
hr7517
hr7476
hr7465
hr7051
hr7025
hr7027
hr7020
hr7019
hr7022
hr7018
hr7017
hr6560

It seems to effect the related/*/BILLS and packages/*/summary API. If I try to assume the asset URLS it looks like they respond with content.

For example this will return hr6560's IH PDF, even though 0 results are returned from the related/*/BILLS API.

curl --location 'https://api.govinfo.gov/packages/BILLS-118hr6560ih/pdf' \
--header 'X-Api-Key: <API_KEY>'

And if I request the summary for the IH text using:

curl --location 'https://api.govinfo.gov/packages/BILLSTATUS-118hr6560ih/summary' \
--header 'X-Api-Key:<API_KEY>'

The response is 200:

{}

@ryparker ryparker changed the title (related bills): missing IH text version (related bills): missing text versions Apr 3, 2024
@jonquandt
Copy link
Member

Thanks for the additional detail. We are investigating.

@ryparker ryparker changed the title (related bills): missing text versions (/related/*/BILLS, /packages/*/summary): missing text versions Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants