usaspending-api icon indicating copy to clipboard operation
usaspending-api copied to clipboard

Awards endpoint Expiration for Delivery Orders Calls

Open aliciatb opened this issue 8 years ago • 2 comments

Hi, I have been trying to get Contract Delivery Orders Calls by posting type = C to https://api.usaspending.gov/api/v1/awards/ and consistently encounter error on page 137 that suggests that my request has expired. I am requesting 100 records at a time and if I change that to 200 or 300, I immediately get back a 500 error.

body {"verbose": true, "limit":100, "filters" : [{"field" : "type", "operation": "in", "value": ["C"]}]}

request url https://api.usaspending.gov/api/v1/awards/?limit=100&page=137&req=c1b96461fb0

http error HTTP/1.1 400 Bad Request - https://api.usaspending.gov/api/v1/awards/?limit=100&page=137&req=c1b96461fb0

message {"message":"Requested 'req' 'c1b96461fb0' does not exist or has expired."}

aliciatb avatar Jun 21 '17 21:06 aliciatb

I am also seeing this consistently for Transactions endpoint whenever it hits page 777.

body {"verbose": true, "limit":100}

request url https://api.usaspending.gov/api/v1/transactions/?limit=100&page=777&req=c6e30f115d6

message {"message":"Requested 'req' 'c6e30f115d6' does not exist or has expired."}'

aliciatb avatar Jun 27 '17 17:06 aliciatb

Hi, I think this issue has been resolved. Ran post calls for both endpoints, and didn't experience any issues. However, will you confirm? I also see that req is no longer returned for post request to https://api.usaspending.gov/api/v1/transactions/. trans_post_response

aliciatb avatar Aug 07 '17 18:08 aliciatb