arcjet-js
arcjet-js copied to clipboard
Nest error message not being converted
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);
}
}