Closed joelgsponer closed 3 years ago
Ok, unfortunately after forking and changing the code to arrive at pin create I still get a 404. What is different in the API call from the previous version that makes it break now? I do not understand how I can connect to the board and see the pins but not GET or POST content. Many thanks Joël
Inspecting our Instance I see: RStudio Connect API Reference 1.0.1 Build 1.8.4.2-2
@joelgsponer , where did you find the instance information?
@dewoller I found it in the documentation: Under the API Reference section.
@dewoller it should also print the version when you run board_rsconnect()
@joelgsponer If you're seeing the rsc_check_status
/rsc_content_find
404 error, it might be worth checking to see if you have anything like a reverse proxy or Web Application Firewall in front of Connect that may be causing an issue.
We saw something similar in #539, which turned out to be a WAF rule blocking certain types of API request.
This doesn't seem to be a widespread problem, and I can't reproduce so I'm going to close.
We are having this same issue - cannot read old pins nor write new ones with pins 1.0.0 or dev version with RSC 1.8.4.2-2. I am presuming this is the same issue as #539, but I don't have access to the RSC server to determine what's wrong.
Just adding that there will likely be more reports of this over time as more people update things.
@j-andrews7 I'd recommend upgrading to pins 1.0.1 (released yesterday) and then if you have another problem please file a new issue with reprex/traceback.
I did some research here, and I think it depends on the setup of your RStudio Connect instance as I'm having the same issue. I think there may be something with the instance where the API isn't enabled. The URL that httr
queries is effectively something like https://my.rsc.com/__api__/v1/content?name=my-data
. Typing that into my browser, I get a 404 error.
For anybody finding this thread later, one of the Connect APIs that pins
uses, /v1/content
, was only introduced in Connect 1.8.6. Prior to that, it was an experimental API and so was not stable or available on the same path.
Anybody else encountering the same issue should consider upgrading their Connect instance.
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.
Hi, Many thanks for your work I really like the ease of use of the pins package. Unfortunately, the recent update did introduce some headaches for me. I use the pins package to temporarily store some data on our company reconnect instance. Until now this worked perfectly. But now I am unable to write/create new pins. I am able to connect to the board without problems.
but writing the pin results in a 404 error.
Error in rsc_check_status(req) : Not Found (HTTP 404).
Digging into the code I think the issue might be here:
As I understand it should try to find the pin and if not it expects the pins_pin_missing error. But this never happens as
rsc_content_find
throws a 404 error before.So I never get to the pin creation part. Is this behavior on purpose? Should the response of the server upon GET be different (e.g. {})? Thanks Joël