chat_postMessage inline code block with >4000 symbols broken markdown

Abierto
#259 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
ruby
Área
api

Línea de trabajo

Start at the chat_postMessage entry point and reproduce the issue using the two payloads in the report with 4,000 and 4,100 characters. Compare the client request and Slack response to determine whether splitting happens in slack-ruby-client or the Slack API; done means the cause and expected handling are established.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug?

I'm sending large inline code blocks into our slack rooms and blocks with more than 4000 symbols (roughly) are coming with a broken code style.

This message works fine:

"*test*\n```#{"x"*4000}```\n*test*"

This one came "broken":

"*test*\n```#{"x"*4100}```\n*test*"

It seems that the message is being split into two.
I'm not quite sure whether it's a gem's issue or an API problem.

The doc https://api.slack.com/methods/chat.postMessage#formatting says

For best results, limit the number of characters in the text field to 4,000 characters. Ideally, messages should be short and human-readable. Slack will truncate messages containing more than 40,000 characters.

Messages are not truncated though, just split.
Please guide where to look at.
I'm using v0.14.1 at the moment.

Lenguaje dominante
Ruby
Estrellas
1.3k
Forks
222
Merge medio
1 d 14 h
PR fusionados (30 d)
3

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de slack-ruby/slack-ruby-client

Todos los issues de slack-ruby/slack-ruby-client

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.