I'm new to puppet, can anyone help with this resolving the error:

==
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find facts from PuppetDB at challenge.puppetlabs.vm:8140:
Failed to execute '/pdb/query/v4/nodes/challenge.puppetlabs.vm/facts' on at least 1 of the
following 'server_urls': https://challenge.puppetlabs.vm:8081
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to execute
'/pdb/cmd/v1?checksum=af015893a96f9d106a4eef5387f31ac38278282c&version=4&certname=challenge.puppetl
abs.vm&command=replace_facts' on at least 1 of the following 'server_urls':
https://challenge.puppetlabs.vm:8081
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
==
**challenge.puppetlabs.vm is resolving to localhost.**
Getting this error while doing the command :
puppet agent -t
The following is the puppet.conf

Please assist.
↧