Cookbook Upload via Chef Server API


#1

I’m currently trying to upload cookbook updates via the Chef Server API, following the instructions here: https://docs.chef.io/api_chef_server.html
As I try to upload the checksums via the relevant sandbox endpoint, I get an Internal Service Error (500). If anyone’s encountered a similar error before or has any suggestions, please let me know.


#2

Can you send the exact request that is generating the 500?

In general, 500’s indicate issues with Chef Server itself. Sometimes
(often) those issues are due to bad input being passed that the Chef Server
doesn’t have validation for, which you can fix by passing good input. I’m
hoping it’s that here :slight_smile:

–John


#3

Hi t-juliaw,

Did you manage to accomplish this task of uploading a cookbook via API Rest (through the sandboxes)?
Many thaks!