Use JsonReader.setLenient(true) to accept malformed JSON at path$ on sending a picture
Description
When i try to send a picture the error message appears and the image isn't uploaded.
Devices and Versions
Your Rocket.Chat.Android version: 3.1.1 Your Rocket.Chat Server version: 0.71.1 (snap)
Mobile device model and OS version: Xiaomi Mi5s (Android 7.0)
Steps to reproduce
- Login to RocketChat
- Open a channel to write (or direct message)
- Click plus sign right of message
- Click "Files"
- Select a file
- Click "Send"
Tested with another android smartphone. Picture upload is NOT working there, too. Your Rocket.Chat.Android version: 3.1.1 Your Rocket.Chat Server version: 0.71.1 (snap)
Mobile device model and OS version: Samsung S5 (SM-G900F) Android 6.0.1
The bug is very annoying for us because user acceptance is decreasing so much. we are currently in a chat rollout. If needed i can create a user for debugging, or send logfiles.
@fadanner I think you're hitting a limitation on the Nginx client_max_body_size. Take a look here: https://github.com/RocketChat/Rocket.Chat.iOS/issues/2184#issuecomment-423517754.
Can you try this and let us know please?
@rafaelks Thanks for the suggestion. Problem is solved.
Now it works very well.
+1 to adjust the documentation https://rocket.chat/docs/installation/manual-installation/configuring-ssl-reverse-proxy/ to mention client_max_body_size
Amazing @fadanner!