Closed dewoller closed 2 years ago
Hey, could you post the http error message? This is very perplexing!
IKR! The funny thing is, that is it, that is the entire message.
I did find another description that triggers the error. e when (1)
pins::pin_write(board=pins::board_register_rsconnect(),
mtcars,
name='abcd',
description=paste( "e when (1)"))
Like playing whack a mole, but I am getting good at rewriting my pin descriptions....
PS congratulations on the new name!
Also description= "case 9)"
causes the error. Any number can replace the 9.
I reckon it is some attempt by Microsoft to stop code injection, because it objects to sql-ish words. E.g. ONLY, WHEN, CASE etc.
I don't think this is a problem with pins or RStudio Connect. All those examples you suggest work on our demo server:
library(pins)
b <- board_rsconnect()
#> Connecting to RSC 2022.07.0 at <https://colorado.rstudio.com/rsc>
b %>% pin_write(mtcars, name = "some-cars", description = "g is not only ")
#> Guessing `type = 'rds'`
#> Writing to pin 'julia.silge/some-cars'
Created on 2022-08-11 by the reprex package (v2.0.1)
Is your Connect instance installed on Azure?
Oh Julia, I am honored, and apologise my paltry bug took you away from all the other great work you are do!
You are correct, this RSConnect instance is behind an Azure gateway, and we have had (and have) other odd problems that result from this unholy alliiance. It is not the first time a Microsoft product has broken standards, but in this case, probably just an attempt to protect something behind the gateway ¯_(ツ)_/¯ .
Thanks for looking into it.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Funny little error. If my pin description has "word is not only" in the description, it fails with an http forbidden error:
It works with a local board:
It also works if any of the words are different, e.g.
Maybe because the board is hosted on azure? We have had odd pin problems with Azure before.
Packages updated, but here is the sessionInfo: