hrecht / censusapi

R package to retrieve U.S. Census data and metadata via API
https://www.hrecht.com/censusapi/
169 stars 31 forks source link

pep apis connection error #30

Closed k-pthomas closed 6 years ago

k-pthomas commented 6 years ago

For most of the apis I can get the list of variables, geography, etc. However, for "pep" apis I get a connection error.

listCensusMetadata(name="pep/subcty", type = "variables") Error in open.connection(con, "rb") : HTTP error 404

Is there a way of fixing this?

Thank you!

hrecht commented 6 years ago

Just seeing this now, it looks like you found a solution?

The pep endpoints require a vintage (data year), it works when including vintage: listCensusMetadata(name = "pep/cty", type = "variables", vintage = 2014)

k-pthomas commented 6 years ago

I did. Unfortunately I can't delete the thread. But Thank you,

Karina Thomas

On Mon, Nov 27, 2017 at 8:07 AM, Hannah Recht notifications@github.com wrote:

Just seeing this now, it looks like you found a solution?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/hrecht/censusapi/issues/30#issuecomment-347210353, or mute the thread https://github.com/notifications/unsubscribe-auth/AgZJJzNq2xdTBZw_h8tj74LpmVeDpssgks5s6tBJgaJpZM4QqIJK .