Dynamic Pagination Not Working

As the title states my dynamic paging isn’t working and I’ve followed the steps from the documents.

So I was able to get the page numbers to show but it doesn’t work when I click on any page instead I get a 500 error. See below.

I have setup everything according to the documents.
Server action.
image

State Manager.

Server Connect.

Pagination.

Any ideas as to what it could be?