HTML error when doing knife cookbook upload


I was going through the tutorials for uploading a cookbook to chef server and I got stuck on the following command:

knife cookbook upload learn_chef_iis

everything up until this point I have managed to figure out and google, but i’m getting a weird HTML error when I run that command on my work station. For reference, my work station is a windows 10 machine and the chef server is an ubuntu 16.04 machine that I have spun up in AWS.

The error I am getting is as follows:

ERROR: The object you are looking for could not be found

Chef - 404 Not Found

404 - Not Found

Sorry, I can't find what you are looking for.

© 2010 – 2017 Chef Software, Inc. All Rights Reserved

has anyone come across this before and know how to deal with it? As I said earlier, I have managed to do and verify everything else in the tutorial so far. Any help is greatly appreciated.