StateOfCalifornia / CalCAT

California Communicable diseases Assessment Tool
MIT License
225 stars 101 forks source link

Error when Running the Program to get Data #15

Closed JLP04 closed 4 years ago

JLP04 commented 4 years ago

When I do run all for al_cat_data_routine.rmd, I get the following error on the MOBS section:

mobs <- grab_mobs() Error: lexical error: invalid char in json text. saved_old_versions/mobs_New Yor (right here) ------^

Note: the arrow should be under the a in saved

vargoCDPH commented 4 years ago

fixed the grab_mobs function to handle New York and Washington, json can be downloaded directly here https://data-tracking-api-dot-mobs-2019-ncov-web.appspot.com/data?state=New%20York%20State&frequency=daily and added to the saved_old_versions directory manually, but will need to be manually updated.

JLP04 commented 4 years ago

I'm still having this problem, even after deleting and re-cloning the repo.

vargoCDPH commented 4 years ago

are you able to save this json (https://data-tracking-api-dot-mobs-2019-ncov-web.appspot.com/data?state=New%20York%20State&frequency=daily) in the saved_old_versions folder? Can you provide some more context for the error you are receiveing?

JLP04 commented 4 years ago

I was able to save the file but I'm still getting the following error when I run the script to download data:

Screen Shot 2020-07-01 at 9 35 05 AM