Created
September 4, 2016 19:46
-
-
Save olivermt/b468602d75507a7a27a913797edfe802 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#line 23 is the Poison encode | |
payload = %{ | |
type: "email", | |
status: "open", | |
labels: ["Redacted" | issue.tags], | |
message: %{ | |
subject: "Issue reported from client", | |
body: body(issue, user.name), | |
from: user.username, | |
to: "redacted@email.com", | |
subject: "Issue reported from client", | |
direction: "in" | |
} | |
} |> Poison.encode! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server: core.videonor.net:80 (http) | |
Request: POST /api/v1/issues | |
** (exit) an exception was raised: | |
** (FunctionClauseError) no function clause matching in Poison.Encoder.List."-encode/3-lists^foldr/2-1-"/3 | |
(poison) lib/poison/encoder.ex:233: Poison.Encoder.List."-encode/3-lists^foldr/2-1-"(#Function<1.62272487/2 in Poison.Encoder.List.encode/3>, [], nil) | |
(poison) lib/poison/encoder.ex:233: Poison.Encoder.List."-encode/3-lists^foldr/2-1-"/3 | |
(poison) lib/poison/encoder.ex:233: Poison.Encoder.List.encode/3 | |
(poison) lib/poison/encoder.ex:213: anonymous fn/4 in Poison.Encoder.Map.encode/3 | |
(poison) lib/poison/encoder.ex:214: Poison.Encoder.Map."-encode/3-lists^foldl/2-0-"/3 | |
(poison) lib/poison/encoder.ex:214: Poison.Encoder.Map.encode/3 | |
(poison) lib/poison.ex:41: Poison.encode!/2 | |
(core) web/service/desk_api.ex:23: Core.DeskApi.create_email_case/2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment