I am using puppet 6 (6.20), and we are trying to get the catalog of a node from puppet master. We are getting an error while executing the command. Could you please check and let us know if I am missing anything. When we use Catalog API from master, then we could retrieve the information.
# puppet catalog find agent2
2021-03-06 15:49:50.338411 WARN puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C
Error: Function lookup() did not find a value for the name 'classes'
Error: Could not call 'find' on 'catalog': Function lookup() did not find a value for the name 'classes' on node agent2
Error: Could not call 'find' on 'catalog': Function lookup() did not find a value for the name 'classes' on node agent2
Error: Try 'puppet help catalog find' for usage