Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle redirects #201

Open
colearendt opened this issue Jul 31, 2023 · 5 comments
Open

Handle redirects #201

colearendt opened this issue Jul 31, 2023 · 5 comments

Comments

@colearendt
Copy link
Contributor

colearendt commented Jul 31, 2023

We recently hit redirect issues where connectapi would just hang on redirects. We should handle redirects more nicely

@jspiewak

@nealrichardson
Copy link
Collaborator

Do you have a reproducer? IIRC there is a curl option to follow redirects, but it thought it was default to on.

@jspiewak
Copy link
Member

jspiewak commented Jun 6, 2024

It was likely a piece of content that was explicitly pointed at connect.rstudioservices.com that didn't gracefully handle when we migrated to connect.posit.it and put a redirect in place.
But maybe Cole recalls more specifics.

@aronatkins
Copy link
Contributor

An rsconnect issue from the same time (host rename): rstudio/rsconnect#760

One problem we observed is that the initial request received a redirect response but the client didn't recognize that its payload needed to be resent.

This comment talks about what we saw for colorado: rstudio/rsconnect#754 (comment)

@colearendt
Copy link
Contributor Author

colearendt commented Jun 10, 2024

Yeah, I believe this was related to these pins requests. I did them at the same time, at least 😅

rstudio/pins-r#760
rstudio/pins-r#759

The problem for this post was a few scheduled reports on Connect that were not handling redirects. As a result, they just blocked and filled the job queue so nothing else on the server could run. I'll DM the reports in question.

You're right though - a rudimentary check just now showed connectapi respecting redirects

@nealrichardson
Copy link
Collaborator

One problem we observed is that the initial request received a redirect response but the client didn't recognize that its payload needed to be resent.

That sounds like https://curl.se/libcurl/c/CURLOPT_POSTREDIR.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants