Closed Adzz closed 5 years ago
I think this does not belong here, since the underlying Google library is ultimately responsible for (de)serialization.
Additionally, with this change a consumer can no longer be certain of the shape of the message data coming out of the producer, as they'll now have to match on both atom and string keys.
Agreed. We should rather try to figure out exactly why you are getting a map of string keys. Are you running the latest? What is your broadway, broadway_cloud_pub_ssub and google API versions?
Thanks all, I agree too, not proud of the code particularly just didn't know what else to do.
I updated the issue https://github.com/plataformatec/broadway_cloud_pub_sub/issues/34 , maybe lets continue the conversation there so we don't get confused! But am using latest versions of the libraries
For some reason that I can't figure out, when querying Pub Sub in production, line 71 in GoogleApiClient the pubsub_projects_subscriptions_pull/3 returns me something that looks like this:
However I notice when I run the tests here the same function returns me:
This allows me to continue even though my response from Pub Sub is not getting serialized into a GoogleApi.PubSub.V1.Model.ReceivedMessage
closes #34