Skip to content

Performing .getEntries() before any of .get, .find, ... results in an error #111

Open
@mhillerstrom

Description

@mhillerstrom

Performing a app.service('tmp').getEntries() (inherited from feathers-memory) before using any command internally executing ready() will result in a TypeError (Cannot convert undefined or null to object). The problem resolves after first command executing ready().

The problem can easily be fixed by executing ready() as part of constructor (alternatively in a new _setup()). To circumvent the problem use await app.service('tmp').ready() as part of your application initialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions