cmhc icon indicating copy to clipboard operation
cmhc copied to clipboard

Uniformative warning message

Open mountainMath opened this issue 8 months ago • 2 comments

When requesting data for regions that are not covered by CMHC the code emits a warning message to report the 500 error. This should get changed to be more informative. One problem is that there could be many reasons for a 500 error, but the package could try and give more information on possible causes.

mountainMath avatar Jul 22 '25 19:07 mountainMath

Example code to trigger this:

get_cmhc("Scss","Starts","Dwelling Type","Historical Time Periods", geo_uid="3519076")

(Trying to pull data for Chippewas of Georgina Island First Nation)

mountainMath avatar Jul 22 '25 19:07 mountainMath

Addressed in https://github.com/mountainMath/cmhc/pull/28.

mountainMath avatar Jul 24 '25 03:07 mountainMath