Filebeat setup dont load because kibana version


I have a single node server with a basic license in ELK and I want to monitor a machine with filebeat but the following error appears:

# filebeat setup
Overwriting ILM policy is disabled. Set `setup.ilm.overwrite: true` for enabling.

Index setup finished.
Loading dashboards (Kibana must be running and reachable)
Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to fails: <nil>. Response: {"name":"kibana-server","uuid":"0c2912c6-0156-4168-af86-3532efd7cefe","version":{"number":"7.14.1","build_hash":"196ec3974d4c725a3d937725419e5ed7d8fdb104","build_number":42892,"build_snapshot":false},"status":{"overall":{"since":"2021-10-01T18:38:12.... (truncated).

I can curl that URL with the credentials to access Kibana from the machine but apparently the error lies in the state of the API and I can't debug it. In fact I was able to install metricbeat to see the metrics of the system without any issue.