Keep getting this error when trying to connect with client: C:\Users\Dell-5510>synapse get -r syn8564279 Synapse username: **myusername** Traceback (most recent call last): File "c:\program files\anaconda3\lib\site-packages\synapseclient\__main__.py", line 807, in login_with_prompt syn.login(user, password, silent=silent, rememberMe=rememberMe, forced=forced) File "c:\program files\anaconda3\lib\site-packages\synapseclient\client.py", line 379, in login raise SynapseNoCredentialsError("No credentials provided.") synapseclient.exceptions.SynapseNoCredentialsError: **No credentials provided.** Any suggestions would be appreciated

Created by Iman Mohtashemi im281
Hi @yanfen.shi , Sorry for the inconvenience - could you follow instructions here: https://python-docs.synapse.org/build/html/getting_started/credentials.html to set up your client? Alternatively, can you run: ``` synapse config ``` And follow the instructions, then run your command. Please do make sure you include both your username and personal access token. Best, Tom
Hi, I am currently using Ubuntu. I have successfully logged in as indicated by the following message. ####################### synapse login -u "yanfeng.shi" Password, api key, or auth token for user yanfeng.shi: [WARNING] Logging into Synapse via passwords will be deprecated by early 2024. This message will disappear if you use a Synapse Personal Access Token to login. Welcome, yanfeng.shi! ######################## However, when I attempt to access data using 'synapse get -r syn52363617,' I still encounter an error." ############## Synapse username (leave blank if using an auth token): Traceback (most recent call last): File "/home/shi/miniconda3/lib/python3.9/site-packages/synapseclient/__main__.py", line 1750, in login_with_prompt _authenticate_login( File "/home/shi/miniconda3/lib/python3.9/site-packages/synapseclient/__main__.py", line 1815, in _authenticate_login syn.login(user, **login_kwargs_with_secret) File "/home/shi/miniconda3/lib/python3.9/site-packages/synapseclient/client.py", line 487, in login raise SynapseNoCredentialsError("No credentials provided.") synapseclient.core.exceptions.SynapseNoCredentialsError: No credentials provided. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/shi/miniconda3/bin/synapse", line 10, in sys.exit(main()) File "/home/shi/miniconda3/lib/python3.9/site-packages/synapseclient/__main__.py", line 1842, in main perform_main(args, syn) File "/home/shi/miniconda3/lib/python3.9/site-packages/synapseclient/__main__.py", line 1731, in perform_main login_with_prompt(syn, args.synapseUser, args.synapsePassword, silent=True) File "/home/shi/miniconda3/lib/python3.9/site-packages/synapseclient/__main__.py", line 1755, in login_with_prompt user, passwd = _prompt_for_credentials(user=user) File "/home/shi/miniconda3/lib/python3.9/site-packages/synapseclient/__main__.py", line 1763, in _prompt_for_credentials user = input("Synapse username (leave blank if using an auth token): ") OSError: [Errno 9] Bad file descriptor
Hi, I have come across a problem that when I used command"docker login -u -p docker.synapse.org" to log in my synapse account through terminal, I got error message "Error saving credentials: error storing credentials - err: exit status 1, out: `The user name or passphrase you entered is not correct.`" But I am pretty sure my username and password are correct and this error has never happened before. Any idea what might be wrong? Any suggestions would be appreciated. Yao
Had the same issue! synapse login -u "username" -p "password" --rememberMe worked for me.
Hi Thomas I still get this: C:\Users\Dell-5510>synapse login -u "im281" --rememberMe TypeError: putwch() argument must be a unicode character, not int
Dear Iman, Please do: ``` synapse login -u "im281" --rememberMe ``` You should then be prompted to type in your password. Best, Tom
Hi now I get this: synapse login --rememberMe Synapse username: after I type in my user name TypeError: putwch() argument must be a unicode character, not int
You can learn more here: http://docs.synapse.org/python/CommandLineClient.html (wrong link previously)
Dear Iman, This means that you are not logged into synapse. Please do: ``` synapse login --rememberMe ``` This should prompt you to put in your credentials and you should be able to execute your command. Best, Tom

logging in page is loading…