Daniel (dB.) Doubrovkine

Results 3350 comments of Daniel (dB.) Doubrovkine

Do you mean it doesn't include `response_metadata`? We should, it's not on purpose.

We could change `to_s` to display it.

I would first check whether https://github.com/slack-ruby/slack-ruby-client/blob/master/lib/slack/web/faraday/connection.rb#L17 is getting these options, just to be sure. Then reproduce just with Faraday directly.

Reproduce with Faraday alone. I suspect it's the same problem, which means it's not an issue with the client itself (I don't know what the problem is though).

As mentioned in the document: https://slack.dev/node-slack-sdk/rtm-api _Note: RTM isn’t available for modern scoped apps anymore. We recommend using the Events API and Web API instead. If you need to use...

Yes, the client fully supports events. But since events just require a web server, it's a bit different. Start with https://github.com/slack-ruby/slack-ruby-bot-server-events. I've been migrating existing apps, and wrote up https://code.dblock.org/2020/11/30/migrating-classic-slack-ruby-bots-to-granular-permissions.html.

I would start from isolating whether this is a problem where Slack stops sending messages, whether the websocket gets closed, a blocking thread in the app, or something else. Enable...

@MarioRuiz Did you ever find the root cause of this? Could be code that hangs (and potentially solved with https://github.com/slack-ruby/slack-ruby-client/pull/486)?

Does `as_json` work? I think `to_json` is defined by some other gem as basically `as_json.to_s`. I use a custom representer to always force Grape's `present ...` to return JSON like...

@epiphanatic care to contribute, maybe start by adding (failing) [YAML REST tests](https://github.com/opensearch-project/OpenSearch/blob/main/TESTING.md#testing-the-rest-layer) that express the behavior you're looking for?