Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

parse error: premature EOF #19

Open
ThomasWilli opened this issue May 19, 2023 · 0 comments
Open

parse error: premature EOF #19

ThomasWilli opened this issue May 19, 2023 · 0 comments

Comments

@ThomasWilli
Copy link
Contributor

Via @lleemann

federalvotes <- get_nationalvotes(from_date=from, to_date=to, geolevel = “municipality”)
Error in `map()`:
In index: 25.
Caused by error:
! parse error: premature EOF
                                       { “abstimmtag”:“20170212”, “tim
                     (right here) ------^



federalvotes <- get_nationalvotes(from_date=from, to_date=to, geolevel = “municipality”)
Error in `map()`: information: In index: 33.
Caused by error:
! parse error: premature EOF
                                       { “abstimmtag”:“20170924”, “tim
                     (right here) ------^
Run `rlang::last_trace()` to see where the error occurred.`


Backtrace:
     ▆
  1. └─swissdd::get_nationalvotes(from_date = from, to_date = to, geolevel = “municipality”)
  2.   └─purrr::map_dfr(...)
  3.     └─purrr::map(.x, .f, ...)
  4.       └─purrr:::map_(“list”, .x, .f, ..., .progress = .progress)
  5.         ├─purrr:::with_indexed_errors(...)
  6.         │ └─base::withCallingHandlers(...)
  7.         ├─purrr:::call_with_cleanup(...)
  8.         └─swissdd (local) .f(.x[[i]], ...)
  9.           └─swissdd:::check_api_call(res)
 10.             ├─base::suppressWarnings(...)
 11.             │ └─base::withCallingHandlers(...)
 12.             └─jsonlite::fromJSON(httr::content(call_res, as = “text”, encoding = “UTF-8"))
 13.               └─jsonlite:::parse_and_simplify(...)
 14.                 └─jsonlite:::parseJSON(txt, bigint_as_char)
 15.                   └─jsonlite:::parse_string(txt, bigint_as_char)
Run rlang::last_trace(drop = FALSE) to see 4 hidden frames.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant