propublica / sunlight-congress

The Sunlight Foundation's Congress API. Shut down on Oct. 1, 2017.
https://www.propublica.org/nerds/item/congress-api-bill-subjects-personal-explanations-and-sunsetting-sunlight
Other
169 stars 65 forks source link

Get request returning error #545

Closed caseyahlan closed 7 years ago

caseyahlan commented 7 years ago

Last night, I coded this and it was working: base <- ("https://congress.api.sunlightfoundation.com/") search.query <- "budget" bills.resource <- ("bills/search?query=") filters <- ("&congress=115") bills.response <- GET(paste0(base, bills.resource, search.query, filters)) bills.body <- fromJSON(content(bills.response, "text")) But now this morning it doesn't work. When I paste the link into a browser, it returns a page that says {"error":{"backtrace" at the top and near the bottom it says {\"Message\":\"User: anonymous is not authorized to perform: es:ESHttpGet on resource: propublica\"}","type":"Elasticsearch::Transport::Transport::Errors::Forbidden"}}. Is anyone else having this issue?