internetmarke
internetmarke copied to clipboard
TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["flatten"] when trying to initialize 1C4A or ProdWS
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
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.