Rstudio v1.1.456 rpubs upload error, no login prompt

Hi I couldn't find any useful information in regards to this one.
When I try to publish to Rpubs on Rstudio, instead of login prompt I get this error message below.
[Edited] Rstudio version is 1.1.456 and R version is 3.5.1

Upload Error Occurred
Error in if (result$status == 201) succeeded <- TRUE :
missing value where TRUE/FALSE needed
Calls:
In addition: Warning message:
In http(protocol, "api.rpubs.com", port, method, path, headers, :
NAs introduced by coercion
Execution halted

I've already addded this line
options(rpubs.upload.method = "internal")
to both global and working directory Rprofile

2 Likes

Hi @maxed88! Welcome!

What version of RStudio are you using? (3.5.1 is your version of R; what’s the difference? See: Differentiating R from RStudio)

I am having exactly the same problem and I would really like to receive an answer what is wrong.

Hi I'm currently using version 1.1.456.

Same problem for me. Using Rstudio Version 1.1.463 on OSX.

same here Version 1.1.456 on OS

Thanks for the report. I get a similar though not identical error in RStudio 1.1.463:

Error in function (type, msg, asError = TRUE)  : Empty reply from server
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Timing stopped at: 0.041 0.009 0.999
Execution halted

but it works with no problems on RStudio 1.2.1114.

This might be an issue in the most recent version of rsconnect (0.8.12). Could someone affected try a candidate fix? If it doesn't work for you, please let us know what error(s) you encounter!

  > devtools::install_github("rstudio/rsconnect", ref = "bugfix/multi-status-header")

Use that to install the patch, then restart RStudio and try publishing again.

3 Likes

It works like a charm! Thanks for the solution

No problem, glad it worked!

For anyone reading this thread afterwards, the fix has been merged, so you can just install the development copy of rsconnect to get it.

> devtools::install_github("rstudio/rsconnect")

The fix will also be in the next version of rsconnect on CRAN (0.8.13).

3 Likes

The fix worked for me too.
Many thanks!

My R version is 3.5.1, it does not seem to work for me. I got the following error whiles running the fix code
Error in readLines(f) :
(converted from warning) incomplete final line found on 'C:\Users\Ismaela.Abubakar\Documents.Rprofile'

Hurray!!!, it is fixed now

Many thanks

1 Like

Team,
It worked for me

You may not have devtool so you need to use:

install.packages("devtools")
devtools::install_github("rstudio/rsconnect", ref = "bugfix/multi-status-header")

Error we had now its solved.

Error in if (result$status == 201) succeeded <- TRUE : missing value where TRUE/FALSE needed Calls: <Anonymous> In addition: Warning message: In http(protocol, "api.rpubs.com", port, method, path, headers, : NAs introduced by coercion Execution halted

Thanks.
Rajwant

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.