Error: bad component(expected host component)

Problem: After installing Puppet on a Windows Host I get this error when running the Puppet Agent. It could not retrieve the catalog also

Expected outcome: The puppet agent should run successfully

Foreman and Proxy versions: 3.21

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data: