Posit Connect Publish Issue using R Studio Dekstop : ERROR Code 10053 (An established connection was aborted by the software in your host machine)

I'm having trouble connecting to my Posit Connect server using RStudio Desktop on Windows.

When I try to connect my account details through the RStudio Desktop publish window, I receive an error message stating: "The server appears to be valid, but rejected the request to authorize an account."

The RStudio Desktop log shows an additional error:
"ERROR system error 10053 (An established connection was aborted by the software in your host machine).

While both RStudio Desktop and R Sessions are allowed through my firewall, and I can connect successfully from a Mac, this specific Windows machine seems to be causing the issue.

Can you help me identify the reason behind this connection problem?

Could you try establishing the connection using an API key instead?

1 Like

One additional suggestion, try adding the Connect server via rsconnect::addServer() prior to adding your account with connectApiUser() as David suggested. Doing this resolved the issue for me.

1 Like