Skip to content

droplet response error in task function #1

@erickhsiao

Description

@erickhsiao

As title, when I perform

DigOc.Droplet.power_off("droplet_id") 

it occur error messages like following :

** (FunctionClauseError) no function clause matching in Access.fetch/2
(elixir) lib/access.ex:117: Access.fetch({:ok, %{id: "unprocessable_entity", message: "Droplet already has a pending event."}, [{"Date", "Tue, 17 May 2016 07:17:03 GMT"}, ......]}, :id)  
(elixir) lib/access.ex:149: Access.get/3
(digoc) lib/digoc/droplet.ex:150: DigOc.Droplet.task/3
(twwin) lib/twwin/digoc_checker.ex:46: DigocChecker.handle_info/2
(stdlib) gen_server.erl:615: :gen_server.try_dispatch/4
(stdlib) gen_server.erl:681: :gen_server.handle_msg/5
(stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3

And look into line 150, the response should be

{:ok, status, _} = postreq("droplets/#{ id }/actions", map)  

or similar, like case..

I've fix that in my local, but still, need to report it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions