Failed to connect PipeWire context

Hello,
I get an error when trying to share my screen or record it using Spectacle:

An error occurred while attempting to record the screen.

Failed to connect PipeWire context

also, I have tried different solutions provided in the archlinux wiki but none have worked yet.

try removing wireplumber and installing pipewire-media-session

It wasn’t already installed.
image