Skip to content

FgaRequiredParamError: Required parameter apiHost was null or undefined when calling Configuration. #154

Open
@digitaltopo

Description

@digitaltopo

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of OpenFGA and the issue still persists.
  • I have searched the Slack community and have not found a suitable solution or answer.
  • I agree to the terms within the OpenFGA Code of Conduct.

Description

When apiURL parameter is not supplied while initializing the OpenFGA client, we get an error message that suggests using deprecated apiHost parameter:

FgaRequiredParamError: Required parameter apiHost was null or undefined when calling Configuration.

Expectation

The error message should be to supply an appropriate apiUrl parameter, NOT the deprecated apiHost parameter.

Reproduction

import { OpenFgaClient } from '@openfga/sdk';

const openFga = new OpenFgaClient();

OpenFGA SDK version

0.6.3

OpenFGA version

latest

SDK Configuration

javascript

Logs

No response

References

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions