ERROR: Unable to create a physical replication slot: streaming connection not configured

i have postgres15
barman version 3.6.0 Barman
when i run command
barman receive-wal --create-slot pg
ERROR: Unable to create a physical replication slot: streaming connection not configured
how can i fix this error ?