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?
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?