This error means the Connections API is not available for your workspace setup.
If you’re using your own Cube instance instead of Embeddable’s hosted cube, you should use the Data Provider API instead.
Similarly, if you see this error while using the Data Provider API, it means your workspace is configured to use Connections API and not the Data Provider API.