Closed Philonous closed 8 years ago
Thanks for the report, @Philonous. This might be due to some inconsistency in the JSON response. I will see if I can reproduce.
@Philonous I think this may have to do with a change in the way .:?
worked in aeson 0.10, which differs from both 0.9 and 0.11. I think I can correct this by specifying aeson 0.11 in a future 0.1.3.1 (which requires the fix to #39 first).
@Philonous this should be fixed now. Can you test with 0.1.3.1? It should be available on Hackage now.
I believe this is fixed. @Philonous please reopen if you notice this again.
Thanks! Mark
I'm on https://www.stackage.org/lts-18.28, which means I'm using aeson-1.5.6.0 and have added twilio-0.3.0.0 to my stack.yaml...
- twilio-0.3.0.0@sha256:155b6780dd90f1835172f1651aec9caf008f9359317629fb7e39ac07d37c7870,5892
... but I'm still hitting this error....
*** Exception: UnexpectedResponse (Response {responseStatus = Status {statusCode = 201, statusMessage = "Created"}
I'm trying to send an SMS with this code:
I'm using my test account credentials and the numbers from the magic numbers page.
The library throws an UnexpectedResponse exception (note that I have replaced possibly sensitive parts with [redacted]) :
Installed twilio version is 0.1.3.0