You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** (FunctionClauseError) no function clause matching in Keyword.put/3
The following arguments were given to Keyword.put/3:
# 1
%{}
# 2
:status
# 3
"foobar"
Attempted function clauses (showing 1 out of 1):
def put(keywords, key, value) when is_list(keywords) and is_atom(key)
(elixir) lib/keyword.ex:577: Keyword.put/3
The text was updated successfully, but these errors were encountered:
When doing
Hunter.create_status(conn, status_text)
without any options, the default is[]
. This gets passed toHunter.Status.create_status/3
, which makes this empty options list into an empty map. Then it gets passed on toHunter.Api.HTTPClient.create_status/3
which tries to da aKeyword.put(options, :status, status)
onto that empty map.This then finally results in:
The text was updated successfully, but these errors were encountered: