You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
..and the API was able to connect, although it then threw an error when parsing the XML response. Being able to inspect the response via meta was incredibly useful - thank you for implementing this pattern.
After a bit of debugging, found that the :skip-whitespace option in the XML parsing utility caused it to fail.
(nscognitect.aws.util....)
...
(defnxml-read"Parse the UTF-8 XML string."
[s]
(xml/parse (ByteArrayInputStream. (.getBytes ^String s "UTF-8"))
:namespace-awarefalse;; option provided here:skip-whitespacetrue))
I'm not sure exactly why this caused it to fail - but just wanted to share back that getting it to work required a bit of monkey patching as below:
I've been migrating some storage to Cloudflare's R2, which has an S3-compatible API.
Out of the box, most of the options already available worked well - I initialised a client with the following options:
..and the API was able to connect, although it then threw an error when parsing the XML response. Being able to inspect the response via meta was incredibly useful - thank you for implementing this pattern.
After a bit of debugging, found that the
:skip-whitespace
option in the XML parsing utility caused it to fail.I'm not sure exactly why this caused it to fail - but just wanted to share back that getting it to work required a bit of monkey patching as below:
With this in place, the client behaves as normal, although it's a little annoying.
Two questions:
Thanks!
The text was updated successfully, but these errors were encountered: