internetmarke icon indicating copy to clipboard operation
internetmarke copied to clipboard

TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["flatten"] when trying to initialize 1C4A or ProdWS

Open josh1203 opened this issue 2 years ago • 1 comments

The issue

Whenever an attempt is made to call initProductService or initOneClickForAppService the request fails throwing the following type error: TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["flatten"]

What I've tried

I tried using our credentials as well as some dummy credentials which should not contain invalid characters like:

await internetmarke.initProductService({
                client: {
                    username: 'none',
                    password: 'password',
                    id: 'NONE',
                },
            });

All attempts resulted in the same issue described above.

Environment

  • Docker-Container running node:16-alpine
  • TypeScript 4.9.5

josh1203 avatar Dec 05 '23 14:12 josh1203

Hi @josh1203, I could not reproduce the error. Would you please provide the error stack?

If the client ID matches your username you can just go with username and password for the client credentials.

schaechinger avatar Dec 08 '23 14:12 schaechinger