Hey guys!
I’m trying to creat an article folowing the example in the api documentation about creating a article with an inline image.
The problem is, when I try to run it to upload a photo I get the error:
414 Request-URI Too Large - nginx
Apparentely my base64 string is too long.
When sending small images, it works fine. But if I send a photo, it doesn’t.
I’ve tried to edit the ‘default ’ file, located in /etc/nginx/sites-enabled , but when I restart the container the file is replaced again with a new file.
How can I make permanent adjustments on the nginx configuration so I can use a larger value on large_client_header_buffers to be able to pass the image using base64 trough the http post?
Infos:
Used Zammad version: 6.0.0
Used Zammad installation type: docker-compose
Operating system: ?
Browser + version: Brave
Expected behavior:
Article created with image.
Actual behavior:
Steps to reproduce the behavior:
Follow the ‘Create Article with inline image’ example, using a larger image.
The request you’re sending might be a big plus to understand what you’re actually trying.
Note that URLs do have fixed size limits. If your webserver is complaining about these, that doesn’t too right to me.
I’m doing exactly as the documentation says.
The only difference is that bigger images have a bigger base64 string. And when I get some picture in WhatsApp and convert it to base64, is too long for the api because of nginx settings…
A smaller image (shorter base64 string) works normally.
Again, please: Share your payload.
I’m sory. Here it is.
I’m making a post to: http://192.168.0.10:3000/api/v1/ticket_articles
The payload that doesn’t work is:
(“Full” image 240x207px, base64 with 9092 characters)
{
"ticket_id": 88,
"subject": "Resposta via WhatsApp",
"body": "Imagem<br> <img src=\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAQDAwQDAwQEAwQFBAQFBgoHBgYGBg0JCggKDw0QEA8NDw4RExgUERIXEg4PFRwVFxkZGxsbEBQdHx0aHxgaGxr/2wBDAQQFBQYFBgwHBwwaEQ8RGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhr/wAARCADPAPADASIAAhEBAxEB/8QAHQABAAIDAQEBAQAAAAAAAAAAAAYHBAUIAwIBCf/EAEkQAAEEAQICBQYKCAQEBwAAAAEAAgMEBQYRBxITITFBUSIyYXGBkQgUFSMzQlJyobFDU2KSssHC0RYkgqIlNERjNTZ0g5Oj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I2gAbgLDyUUXFxu43KIiLIvERERERERERERERERERERERERERERERERERERERERERERF//9k=\">",
"content_type": "text/html",
"type": "chat",
"internal": false,
"origin_by_id":3,
"message_id": "false_74CD55F9B1C706ED",
"in_reply_to": "true_D3B9BA2CD8"
}
If I cut the image to 50x50px, it works.
Using the exactly same code.
(Base64 with 1496 characters)
{
"ticket_id": 88,
"subject": "Resposta via WhatsApp",
"body": "Imagem<br> <img src=\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAYGBgYHBgcICAcKCwoLCg8ODAwODxYQERAREBYiFRkVFRkVIh4kHhweJB42KiYmKjY+NDI0PkxERExfWl98fKcBBgYGBgcGBwgIBwoLCgsKDw4MDA4PFhAREBEQFiIVGRUVGRUiHiQeHB4kHjYqJiYqNj40MjQ+TERETF9aX3x8p//CABEIADEAMwMBIgACEQEDEQH/xAAxAAABBQEAAAAAAAAAAAAAAAAAAQIEBQYDAQADAQEBAAAAAAAAAAAAAAAABAUCAwH/2gAMAwEAAhADEAAAAtSZniu3rG5F+vdRRxOJ16F8YzmVt4oyx4MEfTV93hFBTopQxZUebWZ243tLEl6KTQAKHiE+qy+CjxkKGUAD0//EAAL/2gAMAwEAAgADAAAAIb15PSC68RiaAAAAgP/EAAL/2gAMAwEAAgADAAAAELnFgtVAQfcPPHH3vP/EACsRAAIBAwAFDQAAAAAAAAAAAAECAwAEEQUGEBIxExQhIjIzUVNhcYGRof/aAAgBAgEBPwA6bTJAt5PXNQ6QmmPUtjjxJq+uplbkk4kDIFczvfKT7NaOW1vWkaObeWNsNilRIkIUboFW0WXeZhksejZqbc7l3LCeDp+rTAMpFYA2amduf4pO7l9qGz//xAApEQACAAQEAwkAAAAAAAAAAAABAgADBBEFBhAhMTIzFBZBQkRScYGC/9oACAEDAQE/AEyhVMobtUmx4EXMd0Ji81Uv0sYfl6how0+pcOE3u2yiGzDh4ZrNMtfayiKasE2QpWQZZ9ptBJO94zJipnOKSU1kTqW8zRdopmsxHgRGNV5o6QlOo2ywSSSSeOlLGYfT/qDzH50//8QAJBAAAgIABQQDAQAAAAAAAAAAAQIAAwQQETFBBRIgIRMyUWH/2gAIAQEAAT8Cy1ncP2PdWg1LCYnqjNqtXofsWsMO5rfZj34tToztDibebTDe36xi/IdzLW0SUUPc/aoidPoCjXeM7t9mJi1loqKuVgL2KizC4ZaKwOecr0of61AeHTcN7N7c/XwO+VNJuft45iqFAA28LN8sHV8dX9PjZxF3EHEGf//EACIQAAIBAgYDAQAAAAAAAAAAAAABERAxICFBUWFxocHRgf/aAAgBAQABPyEkgNOgYYxckWPNEuBcIQT5PoAz7hdPS7zHMU3FHsMSCzDNjWewZxS3O83ojCX7YrKzXc0mHEa4JkPw3IqkMqLH6OBBEIoSwJHekI3vvFeWWixV/8QAIRABAAIBAwQDAAAAAAAAAAAAAQARMRAhUUFhkaGBwdH/2gAIAQEAAT8QuJHM7xNyfOQDorWktjwqymVSgtsS8bUJ4lTKLUMvmDDTd1gKAYt1F7xlT4AivSgYMO8xsQ7iCiF8miAFQAgRJK+uwRDOYBSwACjRQFcBE3pSBgCiVEsTkicU6ADbY8A/YX8IHQIa2r0A6ABNj6ycasz+U9PPSJ6ENP/Z\">",
"content_type": "text/html",
"type": "chat",
"internal": false,
"origin_by_id":3,
"message_id": "false_66D269A15D786C",
"in_reply_to": "true_03D3B9BA2CD8"
}
Result:
Those are only testing images.
Usually a picture the user send is way bigger (maybe 3500x2000px, and maybe 70,000 characters in base64).
I’m afraid it’s working perfectly fine for me:
However, note that the version I tested is a current stable version (v6.1.0.876840eb8.saas)
This is the command I successfully run:
curl --location 'https://<FQDN>/api/v1/ticket_articles' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <TOKEN>' \
--data '{
"ticket_id": 2,
"subject": "Resposta via WhatsApp",
"body": "Imagem<br> <img src=\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAQDAwQDAwQEAwQFBAQFBgoHBgYGBg0JCggKDw0QEA8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h71JalCtRZyVIWRN7+UdqykXRqDBqDDR/wAeMA8dT4nPwsoKaqmn+t1/RERFMLWRERERERERERERERERERERERERERERERERERERaTNair4lpYD01k9kY/mva465c5oce9tZnY6d3W4fdH9140tL0Kj+klYbU/aZJjzHf1Kv1s2IVF4aBobxe7Qf+Rq488h2rcibAz5pjfkPc7vVQww5XUs/S8j5R3HzWN9AW9oaHY0B2Rm5z9iPqHvKl7QAAGjYL6URSdEaKN/XVbjM85ku0v2b+89y2pMTlcNiIbI5LEp4+rQZy1IGRDv5R1n1rLRFc44mQtDI2gAbgLDyUUXFxu43KIiLIvERERERERERERERERERERERERERERERERERERERERERERF//9k=\">",
"content_type": "text/html",
"type": "chat",
"internal": false,
"origin_by_id":3,
"message_id": "false_74CD55F9B1C706ED",
"in_reply_to": "true_D3B9BA2CD8"
} '
I’ll update my version and try again…
Can you upload larger images?
system
Closed
September 28, 2024, 1:28pm
9
This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.