After calling the get object function provided by the library, I am returned an
EventLoopFuture<GoogleStorageObject> - I call flatMap(to:) on the
EventLoopFuture<GoogleStorageObject> in order to grab the actual
GoogleStorageObject and use the properties I need however I get this error inside the flatMap:
HTTPError.contentType - HTTP message did not have JSON-compatible content-type.
I don’t understand why it is giving me this error inside the flatMap since the type of data returned defaults to json, also when I get the list of buckets and am returned
EventLoopFuture<GoogleStorageBucketList> and I call flatMap(to:) on that object, it unwraps the future into
GoogleStorageBucketList object with no issues which leads me to believe I am calling flatMap(to:) appropriately so I would appreciate some help if anyone has used the same library or encountered the similar error. Thanks in advance!
Below is a screenshot of my code and the error message along with comments that break down what I mentioned I did above.