HubSpot / slack-client

An asynchronous HTTP client for Slack's web API
Apache License 2.0
114 stars 53 forks source link

Fix 'No serializer found for class java.lang.Object' on getTeamInfo method execution #231

Closed zmarushchak-hs closed 3 years ago

zmarushchak-hs commented 3 years ago

ObjectMapper fails to serialize an instance of class Object. Because of this getTeamInfo method fails with 'No serializer found for class java.lang.Object'. since it passes new Object() as a params field to the postSlackCommand method. This PR fixes this by passing an empty map instead of the object's instance.

leonidhladii commented 3 years ago

LGTM