You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disclaimer: I'm not sure whether I should log this with Connect rather than with pins-r
If I have a pin with a vanity url, but request that vanity url without a trailing slash, then I get a confusing error message about "Pin does not declare file type" - from
"Pin does not declare file type so can't be automatically read",
It might be helpful if this reported a message like "incorrect url - have you tried adding a trailing slash" instead - or perhaps it could even return the data?
If I look at the http transfer... I see that the "mypin_works" requests GET /test/data_cs/data.txt while "mypin_not_works" requests GET /test/data_cs which gets redirected to /test/data_cs/ which returns the Connect HTML page
The text was updated successfully, but these errors were encountered:
slodge
changed the title
Improved type reporting for redirects in board_connect_url
Improved error reporting for redirected mistyped pins in board_connect_url
Nov 17, 2023
This means we can't unfortunately remove a trailing slash because we can't know what the user is intending. However, we can make that error message better. 👍
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.
Disclaimer: I'm not sure whether I should log this with Connect rather than with pins-r
If I have a pin with a vanity url, but request that vanity url without a trailing slash, then I get a confusing error message about "Pin does not declare file type" - from
pins-r/R/pin-read-write.R
Line 230 in a3e52c7
It might be helpful if this reported a message like "incorrect url - have you tried adding a trailing slash" instead - or perhaps it could even return the data?
Reproduced using:
If I look at the http transfer... I see that the "mypin_works" requests
GET /test/data_cs/data.txt
while "mypin_not_works" requestsGET /test/data_cs
which gets redirected to/test/data_cs/
which returns the Connect HTML pageThe text was updated successfully, but these errors were encountered: