generated from SalesforceAIResearch/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Description
I followed the setup instructions, but I am encountering the following TypeError below during the authorization flow.
Any guidance or suggestions to resolve this would be greatly appreciated. Thanks!
Error Log
When I run python tests/test_add_new_org.py, I get the following error:
Authorization failed with exception: 'access_token'
Executing command: sf org login access-token --instance-url https://orgfarm-7a33ee6ec9-dev-ed.develop.my.salesforce.com --no-prompt
Traceback (most recent call last):
File "/home/shashack/Desktop/SCUBA/tests/test_add_new_org.py", line 9, in <module>
authorize_using_access_token(org_alias)
File "/home/shashack/Desktop/SCUBA/scuba/helpers/salesforce_commands.py", line 84, in authorize_using_access_token
stdout, stderr = execute_sfdx_command(login_command, env=env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shashack/Desktop/SCUBA/scuba/helpers/salesforce_commands.py", line 106, in execute_sfdx_command
output = subprocess.run(command, shell=True, text=True, capture_output=True, cwd=cwd, env=env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shashack/anaconda3/envs/scuba/lib/python3.12/subprocess.py", line 550, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/shashack/anaconda3/envs/scuba/lib/python3.12/subprocess.py", line 1028, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/shashack/anaconda3/envs/scuba/lib/python3.12/subprocess.py", line 1880, in _execute_child
env_list.append(k + b'=' + os.fsencode(v))
^^^^^^^^^^^^^^
File "<frozen os>", line 847, in fsencode
TypeError: expected str, bytes or os.PathLike object, not NoneTypeReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels