Look at the output of Poison.decode!(results.body, keys: :atoms)
. There isn’t a data key. You’re asserting via %{data: items}
that the result of Poison.decode!
will be a map with an :data
key and then data. The JSON does not have any such key.
3 Likes