Image Resource not found via a get by slug in API

November 18, 2014 932 views

Am experiencing an issue with a snapshot that i created via the API, when i try to spin up another droplet using it as an image, it fails. when i try to get the image by the slug via the API, I get The resource you were accessing could not be found

But when i get another snapshot image which was not created by the API, it responds without fail
What could be the problem ?

1 Answer

Could you provide more details of the API calls you were making? Generally the error:

{"id":"not_found","message":"The resource you were accessing could not be found."}

is only returned if you are trying to access an endpoint that does not exist. It's likely there is a typo in the URL. For most image related problems, you get a more specific error message.

If the image doesn't exist, you get:

{"id":"unprocessable_entity","message":"You specified an invalid image for Droplet creation."}

If it's not available in the region you are trying to launch it in, you get:

{"id":"unprocessable_entity","message":"The image you specified is not available in the selected region, you can transfer it to this region from the images pages."}
  • Thanks for your response and apologies for the ambiguity
    When creating a new droplet with my snapshot i get

    You specified an invalid image for Droplet creation

    but this error only comes up when the snapshot was one created via the API (droplet action).

    The API create droplet works without any issue with a snapshot i created using the UI.

    Its quite strange as the snapshot is visible o my dashboad

Have another answer? Share your knowledge.