rstudio / rstudio/pins-python

Posit Connect: Board connection issues, have to reconnect to the board multiple times in one session

Open
#334 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

be:rsc
Dominant language
Python
Stars
59
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I define the board in my script (code below) and write out a few pins.

board = pins.board_connect(
server_url=os.environ.get("CONNECT_SERVER"),
api_key=os.environ.get("CONNECT_API_KEY")
)
The connection sometimes gets lost in the script and throws an error. ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

I’ve have to re-run board_connect() mid-script before writing the pin and sometimes need to run it twice for it to work.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the board_connect() entry point and reproduce the failure using the issue's script pattern while writing several pins. Trace how the connection handles RemoteDisconnected errors; done means the board connection remains usable throughout the script without requiring repeated board_connect() calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.