I get this error: /Users/dev/collect-server-health...
# infisical-help
j
I get this error: /Users/dev/collect-server-health.sh zsh: unknown username ' o' Fetching Infisical access token... Traceback (most recent call last): File "<stdin>", line 6, in <module> File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/pathlib.py", line 1257, in read_text return f.read() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 1: invalid continuation byte Installed legacy SSH key at /Users/dev/.ssh/[key name] SSH config: user=joshfialkoff identity=/Users/dev/.ssh/[key name] Fetching secrets from Infisical... Warning: Your logged-in session is being overwritten by the token provided from the --token flag. Request: GET secrets.assistedly.ai/api/v4/…/secrets?includeImports=true&amp;projectId=…&amp;… I Request ID: req-R4XhcRAoPBiMbr Response Code: 403 Forbidden Message: The provided access token is malformed. Please use a valid token or generate a new one and try again. Context: • Unable to fetch secrets If this issue continues, get support at infisical.com/slack
✅ 1
p
Hi @josh654, it seems the token you are passing in via --token is invalid/malformed. A valid access token is a long string containing two dots, like xxxxx.yyyyy.zzzzz. Could you check the value being passed in?
j
I redacted the key. My understanding is that it’s not a best practice to print a key in the chat. Do you agree with that?
p
Hi Josh, no need to send any keys here. I meant that the key you are passing into the cli with --token is not valid. Could you please check the value you are passing in?