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

CumulusCI 4 refresh token error #3852

Open
yippie opened this issue Nov 27, 2024 · 3 comments
Open

CumulusCI 4 refresh token error #3852

yippie opened this issue Nov 27, 2024 · 3 comments
Labels

Comments

@yippie
Copy link
Contributor

yippie commented Nov 27, 2024

Describe the bug

Since upgrading to CummulusCI 4, all commands that work with orgs are outputting the following error:

Exception ignored in: <_io.TextIOWrapper encoding='utf-8'> Traceback (most recent call last): File "/Users/kai.amundsen/.local/pipx/venvs/cumulusci/lib/python3.13/site-packages/cumulusci/core/config/sfdx_org_config.py", line 212, in refresh_oauth_token self.sfdx_info AttributeError: 'Capture' object has no attribute 'flush'

Reproduction steps

  1. Upgrade to CumulusCI 4.0.1 and sf cli 2.67.7
  2. run cci org browser --org <existing org alias>

Org will open in browser successfully but an exception will be output one or many times to the command line.

Your CumulusCI and Python versions

CumulusCI version: 4.0.1 (/Users/kai.amundsen/.local/bin/cci)
Python version: 3.13.0 (/Users/kai.amundsen/.local/pipx/venvs/cumulusci/bin/python)
@salesforce/cli/2.67.7 darwin-arm64 node-v22.11.0

Operating System

MacOS 15.1.1 (24B91)

Windows environment

No response

CumulusCI installation method

pipx

Error Gist

No response

Additional information

No response

@yippie yippie added the bug label Nov 27, 2024
@fischerp
Copy link

I am getting exactly the same issue, and I noticed that it also happens when running the cci org default command.

@jstvz
Copy link
Contributor

jstvz commented Nov 27, 2024

@yippie Thanks for reporting this. Python 3.13 made a change that now logs errors in file handling that were previously ignored. It’s related to how sarge (a library we use) interacts with io.TextIOWrapper.

This error doesn’t affect functionality. You can safely ignore it for now while we wait for an update from the sarge maintainers. If you prefer, you can downgrade to Python 3.12 to stop seeing the error.

@fischerp
Copy link

@jstvz, thanks for clarifying! That’s great to know. I actually encountered an issue during my routine because the default org was set to an empty string (""). It seems like there might be an sf unset org somewhere. Thankfully, I was able to resolve it on my end.

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

No branches or pull requests

3 participants