Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very long messages don't generate reasonable output #165

Open
clockworksoul opened this issue Nov 18, 2021 · 0 comments
Open

Very long messages don't generate reasonable output #165

clockworksoul opened this issue Nov 18, 2021 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@clockworksoul
Copy link
Member

Long outputs (such as the help message from kubectl) don't generated reasonable output.

  • Slack: A invalid_blocks appears, followed by the text in plain (not monospace) format
  • Discord: An Invalid Form Body error is output.

To replicate

Install and enable this bundle:

gort_bundle_version: 1
name: kubectl
version: 0.0.1
description: Kubectl
docker:
    image: clockworksoul/kubectl
    tag: latest
commands:
    kubectl:
        executable: [/usr/local/bin/kubectl]
        rules:
            - allow

Execute the following command in Slack or Discord: !kubectl --help

@clockworksoul clockworksoul added the bug Something isn't working label Nov 18, 2021
@clockworksoul clockworksoul self-assigned this Nov 18, 2021
@theothertomelliott theothertomelliott self-assigned this Nov 19, 2021
theothertomelliott added a commit that referenced this issue Nov 19, 2021
Create file objects for each text output, and return the files if the full text is too long to send as an embed message.

Partial fix for #165
@clockworksoul clockworksoul added this to the 0.9.3 milestone Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants