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

[ERR_INVALID_CHAR]: Invalid character in header content ["authorization"] #352

Open
sridharpannewave opened this issue Feb 2, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@sridharpannewave
Copy link

sfcc-ci Version

2.10.0

NodeJS Version

v12.22.12

sfcc-ci Path

/Users//.volta/bin/sfcc-ci

Host OS Details

ProductName: macOS
ProductVersion: 13.1
BuildVersion: 22C65

What happened?

hi

I'm getting the below error while using this line of code

sfcc.instance.upload(creds.hostname, zipFileName, token, {}, (err) => {
 
   if (err) return logger.error(`Upload error: ${err}`);

   sfcc.instance.import(creds.hostname, zipFileName, token, (err, res) => {
     if (err) return logger.error(`Import error: ${err}`);

   });
 });

Error Upload error: Error: TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["authorization"]

Relevant log output

**Error**  Upload error: Error: TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["authorization"]
@sridharpannewave sridharpannewave added the help wanted Extra attention is needed label Feb 2, 2023
@tobiaslohr
Copy link
Contributor

Hi @sridharpannewave, there is most likely an invalid character in the token you are passing. Can you please check this incl. any \n at the end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants