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

Parse HTML error messages from APIs #5

Closed hrecht closed 7 years ago

hrecht commented 7 years ago

Follow up to: https://github.com/hrecht/censusapi/issues/4 Some error messages (ie invalid API key) are sent as HTML rather than JSON. Parse these messages for better console printing.

hrecht commented 7 years ago

Addressed in https://github.com/hrecht/censusapi/commit/b04ffcc7449ba217abef4363178ed1c51839cf7b, test more extensively before closing.

hrecht commented 7 years ago

No bugs reported, closing as solved.