Closed jglukasik closed 7 years ago
Thanks @jglukasik,
Probably the Aeson FromJSON instances needs to be updated. Usually this happens when a parse error occurs.
Mark
Actually, it might be because this library expects the SM-prefixed SMS SIDs, but the /Messages endpoint can also return MM-prefixed MMS SIDs.
I need to land a test, but https://github.com/markandrus/twilio-haskell/pull/46 may have fixed this.
I can confirm that https://github.com/markandrus/twilio-haskell/pull/46 fixes this issue. Thank you @markandrus!
On a clean checkout and a
stack build
, I then modifymain
intest/Test.hs
to be:(I also source my Twilio creds, and change the phone #'s in
testPOSTMessage
)POST and GET'ing a single message work fine, but GET Messages fails.
Output (account/phone redacted):