I attempted to retrieve customer information using an email address in the sandbox environment, but I am unable to fetch the data. The initial request was successful, but when I try to execute .next() to fetch more data, I encounter the following error message.
'Error: Authentication header included, but incorrectly formatted\n'
[Edit]: Removed screenshot as it contained client token
Steps to reproduce
export class PaymentServer {
paddle = new Paddle(process.env.GIZ_PADDLE_CLIENT_TOKEN, {
environment: Environment.sandbox
});
What happened?
I attempted to retrieve customer information using an email address in the sandbox environment, but I am unable to fetch the data. The initial request was successful, but when I try to execute .next() to fetch more data, I encounter the following error message.
'Error: Authentication header included, but incorrectly formatted\n'
[Edit]: Removed screenshot as it contained client token
Steps to reproduce
export class PaymentServer { paddle = new Paddle(process.env.GIZ_PADDLE_CLIENT_TOKEN, { environment: Environment.sandbox });
async getCustomer() { const customerCollection = this.paddle.customers.list({ email: [authService.user.email] });
} }
What did you expect to happen?
No response
Logs
No response