<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>51962</bug_id>
          
          <creation_ts>2024-11-06 12:32:35 +0300</creation_ts>
          <short_desc>Ошибки декодирования при запросе &quot;msgpack decode error [pos 1]: only encoded map or array can be decoded into a slice (0)&quot;</short_desc>
          <delta_ts>2026-09-07 10:55:56 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>fluent-forwarder</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="obidinog@basealt.ru">obidinog</reporter>
          <assigned_to name="Leontiy Volodin">lvol</assigned_to>
          <cc>lvol</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>254019</commentid>
    <comment_count>0</comment_count>
    <who name="obidinog@basealt.ru">obidinog</who>
    <bug_when>2024-11-06 12:32:35 +0300</bug_when>
    <thetext>Платформа:
alt-server 10.2 x86_64 (Обновленный до Sisyphus)

Пакет:
fluent-forwarder 0.0.1.0.46.b7c3-alt1

Шаги:
Запустить fluent-forwarder
$ fluentd_forwarder -listen-on 127.0.0.1:24224
Отправить запрос
$ echo &apos;{&quot;key 1&quot;: 123456789, &quot;key 2&quot;: &quot;abcdefg&quot;}&apos; |  nc 127.0.0.1 24224

Результат:
Возникает ошибка декодирования
[fluentd-forwarder] 2024/11/06 12:31:10.193206 Connected from 127.0.0.1:53488
[fluentd-forwarder] 2024/11/06 12:31:10.193250 Got conn from acceptChan
[fluentd-forwarder] 2024/11/06 12:31:10.193283 Started handling connection from 127.0.0.1:53488
[fluentd-forwarder] 2024/11/06 12:31:10.193325 msgpack decode error [pos 1]: only encoded map or array can be decoded into a slice (0)
[fluentd-forwarder] 2024/11/06 12:31:10.193338 Ended handling connection from 127.0.0.1:53488</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>296538</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2026-09-07 10:55:56 +0300</bug_when>
    <thetext>fluentd_forwarder слушает протокол Fluentd Forward, в котором сообщения кодируются msgpack (массив [tag, time, record]). В шагах воспроизведения на порт через nc отправляется сырой JSON-текст, поэтому «msgpack decode error: only encoded map or array can be decoded into a slice» — корректная реакция на невалидные данные. Для проверки нужно отправлять msgpack (fluent-cat, fluent-bit с выходом forward). Обновление alt2 того же дня исправляло разбор int64-таймстампов и к этому не относится.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>