Use JsonReader.setLenient(true) to accept malformed JSON at path$ on sending a VIDEO file
Description
Reference: https://github.com/RocketChat/Rocket.Chat.Android/issues/1352
When trying to upload a video file using the latest Rocket.Chat mobile app: https://play.google.com/store/apps/details?id=chat.rocket.android&hl=en
The below error will be displayed: "Use JsonReader.setLenient(true) to accept malformed JSON at path$" on sending a VIDEO file. Image files work perfectly fine without issue.

Devices and Versions
Your Rocket.Chat.Android version: 2.6.1 Build 2043 - 2b41c7d1 Your Rocket.Chat Server version: 0.70.0
Mobile device model and OS version: (e.g. "Nexus 7 - Android 6.0.1") Samsung Note8, Samsung s8
Steps to reproduce
- Download the the Android Mobile app from the Google Playstore.
- Connect to your Rocket.Chat onsite server
- Navigate to a contact or to the '#general' channel
- Click on the paperclip icon in the send message text area
- Click on all files
- Navigate to and select a video file to upload (regardless of size, 1mb doens't even work)
- Note that you will receive the error message as per below:

Logs
I will need to setup Android studio in order to obtain these logs to use the logcat and update this request.
I am receiving this same error when trying to favorite a chat room. Have any update on the fix?
Is this still happening in 3.1.0?
I gave up with it and moved onto mattermost. Works without issue. Video and pictures upload without any issue. Suits my requirements.
Having the exactly same issue on Android Rocket.Chat 3.1.1 , Server Version 0.71.1 (Ubuntu snap) Any chance to fix this?
@fadanner, as this issue has now been closed. You may need to create a new issue and reference this one.