ropensci/dataspice

error: premature EOF

ceefluz opened this issue · 2 comments

All works smoothly until build_site() throwing this error:

build_site(path = "hour_data_all/metadata")
Error in parse_con(txt, bigint_as_char) : parse error: premature EOF
                                       
                     (right here) ------^

Any idea how to fix?

Hi @ceefluz, sorry for leaving this issue open for so long without a response. I must have missed the notification.

Looking at your above code, it's possible the path argument you provided isn't to a valid JSON-LD file, which build_site requires. I think we can add a check to build_site to make this error less cryptic.

If possible, a minimal reproducible example would be great here.

Hey @ceefluz I'm going to close this for now since I couldn't reproduce what you were seeing. Let me know if you still have this problem and want to provide some reproducible steps.