Skip to content

LOGIN : undefined is not an object (evaluating 'this._url.endsWith') passing JS SDK 7.8.2 to 7.8.3 #703

@iotools-systems

Description

@iotools-systems

After trying to update kuzzle-sdk currently in version 7.8.2 to a higher version, the function kuzzle.auth.login('local', {credentials}) gives the following error: [TypeError: undefined is not an object (evaluating 'this._url.endsWith')].

The SDK is created with a protocol HTTP or WebSocket and Kuzzle is running in local (port: 7512, ssl: false)

Usage

try {
  await kuzzle.connect();
  const user = await kuzzle.auth.login('local', {
           username: 'MyUsername',
            password: 'MyPassword',
  });
  console.log(user);
} catch (error) {
      console.log({error});
}

Context (Environment)

Kuzzle version: 2.17.5
Node.js version: 16.14.2
SDK version: 7.8.2 and try to update to 7.8.3 or higher
React-native: 0.64.3
React: 17.0.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions