<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hey,<br></div><div><br></div><div>I had a similar problem before, my workaround was creating a newtype wrapper around the original request and implementing 'AWSRequest' instance by hand. That let me override the way response is parsed.<br></div><div><br></div><div>I dug up the code, the override is here: <a href="https://github.com/utdemir/distributed-fork/blob/edadea209e7e1fda77ca1d37011734771f6559de/serverless-execute-aws-lambda/src/Network/AWS/Lambda/Invoke/Fixed.hs">https://github.com/utdemir/distributed-fork/blob/edadea209e7e1fda77ca1d37011734771f6559de/serverless-execute-aws-lambda/src/Network/AWS/Lambda/Invoke/Fixed.hs</a><br></div><div>And here is how I sent the request: <a href="https://github.com/utdemir/distributed-fork/blob/edadea209e7e1fda77ca1d37011734771f6559de/serverless-execute-aws-lambda/src/Network/Serverless/Execute/Lambda/Internal/Invoke.hs#L78">https://github.com/utdemir/distributed-fork/blob/edadea209e7e1fda77ca1d37011734771f6559de/serverless-execute-aws-lambda/src/Network/Serverless/Execute/Lambda/Internal/Invoke.hs#L78</a><br></div><div><br></div><div>Hope it helps,<br></div><div id="sig64983520"><div class="signature">Utku<br></div><div><br></div></div><div>On Sat, Feb 9, 2019, at 10:11 PM, Magnus Therning wrote:<br></div><blockquote type="cite" id="fastmail-quoted"><div><br></div><div>I just created issue #517 on Amazonka [^1] which got me thinking.<br></div><div><br></div><div>Is my only option to wait for the bug to be fixed or can I hack my <br></div><div>way<br></div><div>around it?<br></div><div><br></div><div>I looked around in the documentation for Amazonka a bit but failed <br></div><div>to<br></div><div>find some obvious way to hack together a "send this request but <br></div><div>give me<br></div><div>the response in JSON". Which is why I'm trying my luck here. I <br></div><div>suspect<br></div><div>I'm not the first Amazonka user to find myself in this situation, <br></div><div>so<br></div><div>hopefully someone's got a solution already.<br></div><div><br></div><div>/M<br></div><div><br></div><div>[^1]: https://github.com/brendanhay/amazonka/issues/517<br></div><div><br></div><div>--<br></div><div>Magnus Therning OpenPGP: 0x927912051716CE39<br></div><div>email: magnus@therning.org<br></div><div>twitter: magthe http://magnus.therning.org/<br></div><div><br></div><div>Computers are useless. They can only give you answers.<br></div><div> — Pablo Picasso<br></div><div><br></div><div>_______________________________________________<br></div><div>Haskell-Cafe mailing list<br></div><div>To (un)subscribe, modify options or view archives go to:<br></div><div>http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe<br></div><div>Only members subscribed via the mailman list are allowed to post.<br></div><div><br></div><div><b>Attachments:</b><br></div><ul><li>signature.asc<br></li></ul></blockquote><div><br></div></body></html>