Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

droplet response error in task function #1

Open
erickhsiao opened this issue May 17, 2016 · 0 comments
Open

droplet response error in task function #1

erickhsiao opened this issue May 17, 2016 · 0 comments

Comments

@erickhsiao
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant