Skip to content

when user passes undefined to our unary methods, we throw an error due to trace logging #1056

@bruuuuuuuce

Description

@bruuuuuuuce

This happens when using pure javascript

        this.logger.trace(`Issuing 'get' request; key: ${key.toString()}`);
                                                             ^

TypeError: Cannot read properties of undefined (reading 'toString')

Should return an instance of CacheGet.Error

Validation would go around here https://github.com/momentohq/client-sdk-javascript/blob/main/packages/client-sdk-nodejs/src/internal/cache-data-client.ts#L291-L295

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions