Skip to content

Error: Result 1 must be a single string, not NULL of length 0 #31

@HugoGit39

Description

@HugoGit39

Hi Im running at the following issue constantly wile producing a post with a html plot made via plotly

Even if I have a simple Rmarkdown file with just 1 plotly html plt attached via knitr::include_graphics(file.path("figs", "test.html"))

Error:

wp_post(path_post, wordpress_url)
Error: Result 1 must be a single string, not NULL of length 0
Run rlang::last_error() to see where the error occurred.
rlang::last_error()
<error/purrr_error_bad_element_vector>
Result 1 must be a single string, not NULL of length 0
Backtrace:

  1. goodpress::wp_post(path_post, wordpress_url)
  2. purrr:::stop_bad_element_vector(...)
  3. purrr:::stop_bad_vector(...)
  4. purrr:::stop_bad_type(...)
    Run rlang::last_trace() to see the full context.

rlang::last_trace()
<error/purrr_error_bad_element_vector>
Result 1 must be a single string, not NULL of length 0
Backtrace:
x

  1. +-goodpress::wp_post(path_post, wordpress_url)
  2. | -goodpress:::.wp_media_post(...)
  3. | -purrr::map_chr(...)
  4. -purrr:::stop_bad_element_vector(...)
  5. -purrr:::stop_bad_vector(...)
  6. \-purrr:::stop_bad_type(...)
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions