Skip to content

error to Upload Files #30

@SuperaRX

Description

@SuperaRX

Hi guys!
I'm trying to upload a file on redmine from telegram.
Im using this code below, but i'm facing a error "ErrorCode":406,"Message":"Not Acceptable"

Somebody can help with this ?

Somebody has a example using api with Nodejs?

               `redmine1.upload(body, function (err, data) {
                if (err) {
                    console.error("erro upload redmine",err);
                }
                console.log("upload sucesso", data);

            });`

content of my body variable:

pload 2 %PDF-1.4
%����
1 0 obj
<</Creator (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36)
/Producer (Skia/PDF m76)
/CreationDate (D:20191007170448+00'00')
/ModDate (D:20191007170448+00'00')>>
endobj
3 0 obj
<</ca 1
/BM /Normal>>
endobj
5 0 obj
<</Type /XObject
/Subtype /Image
/Width 1016
/Height 1406
/ColorSpace /DeviceRGB
/BitsPerComponent 8
/Filter /FlateDecode
/Length 52192>> stream
x���u�*���O�SKZP�i�-����z|b!!,�g�l��ߺ�\���A����.�!��B�!��B�!��B�!��B�!��B�!��B�!��B�!D�A�!��B���Q�/��B�!��<_�!��B�ף����6H�!���=PN%���|!��B��PN%���|!��B��PN%���|!��B��PN%���|!�x1��XB��S��k��I�Ip�g ���ۢ<_�!^ %�OK���H���ԝL�� ����_4��!σ�|!�x%4�?'���މc� �_��s������b�=�g���������|�wJkO?�������o����T�ZM%�Tx�i2��j�W4B�q8�3�� �i|��7���7�6�P�*��5%E��d�����󁇺���0ϟ��SH����9��sHу���*sYR��\5˜�?|��1�?��M�O�O���[���B�!����y-���Yn����sl���ց�f��g��{�$y�2!���|�����c���ϙ�Ϳa>?- ��s�~�K�~H��-�����J���B���8ϯ}�y>���@��6/� ����<*�Os�]��}��_����kZ��(�������)�҇��\��>�?c�n'�{����+��b���g����8����p���%whUkx�6�9;�9>�L���� ��p���'I:�4��:��B��u:z��ͤ�ӓ�<�Q�6���@�U-ߤS�3ޢ��

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions