arcjet-js icon indicating copy to clipboard operation
arcjet-js copied to clipboard

Nest error message not being converted

Open davidmytton opened this issue 6 months ago • 2 comments

A user has reported the error value is not being converted correctly in a Nest.js wrapper they wrote around our SDK. They're seeing some errors logged as: Encountered problem getting remote decision: %s without the actual error.

They have a custom logger in the form:

export class ArcjetNestLogger extends Logger {
    info(msg: string, ...args: unknown[]): void;
    info(obj: Record<string, unknown>, msg?: string, ...args: unknown[]): void;
    info(...args: unknown[]): void {
        this.log(args);
    }
}

davidmytton avatar Aug 21 '24 18:08 davidmytton