In which cases I get this error:

# curl -k -H 'Accept: s' 
https://puppet.mycompanyhosting.co.uk:8140/production/certificate_requests/all
NilClass does not respond to to_multiple_s; can not intern multiple 
instances to text/plainr

On Wednesday, 23 July 2014 21:16:57 UTC+1, Andy Parker wrote:
>
> On Wed, Jul 23, 2014 at 11:40 AM, Danny Roberts <
> dannyrober...@googlemail.com <javascript:>> wrote:
>
>> Thanks that certainly sorts out the authentication problem.
>>
>> Turns out I'm using the wrong API call for what I require though. I'm 
>> after the equivalent of running "puppet cert list" and not "puppet cert 
>> list --all" like the API call I was trying to do.
>>
>> I think 
>> http://docs.puppetlabs.com/guides/rest_api.html#certificate-request is 
>> for this but every time I try the first curl example I get:
>>
>> Not Acceptable: No supported formats are acceptable (Accept: yaml)
>>
>> It doesn't matter which format I try they all report this.
>>
>> I checked the documentation as well at 
>> https://github.com/puppetlabs/puppet/blob/master/api/docs/http_certificate_request.md
>>
>> The "Search" stuff in that doc does not seem to work for me either.
>>
>>
> You are getting that response because yaml isn't supported for this. You 
> need to specify an Accept of "s" (Accept: s). See 
> https://github.com/puppetlabs/puppet/blob/master/api/docs/http_certificate_request.md#supported-response-formats
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/cf7ff2e5-ff79-4715-8be6-7fba303b8260%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to