Quick follow-up, @cole. Not sure if its worth creating another post because its the same topic.
I noticed that when I 'render':
render_url <- paste0(rstudioconnecturl, '/__api__/variants/', variant_id, '/render?email=none&activate=true')
payload <- list()
payload <- purrr::list_modify(payload, app_guid = content_id, variant_key = variant_key)
send_render <- POST(render_url,
body = payload, encode = "json",
add_headers(Authorization = paste("Key", apikey)))
The send_render will receive an httr object, and the content has an $id in it. Is this a task ID? I only ask because when I send it to the public task API endpoint, my output is empty:
task_id <- content(send_render)$id
task_url <- paste0(rstudioconnecturl, "/__api__/v1/experimental/tasks/", task_id)
task_params <- list(first = 0, wait = 5)
task_result <- GET(task_url,
encode = "raw", query = task_params,
add_headers(Authorization = paste("Key", apikey)))
content(task_result)$output # this returns an empty list()
I'm wondering if this is just related to my version of RStudio Connect ( connect_version: 1.7.8-7), or if output logs are not provided when its triggered via the internal variants\render endpoint.
Thoughts?
Jon