Rocket.Chat.Android icon indicating copy to clipboard operation
Rocket.Chat.Android copied to clipboard

[INVESTIGATE] Use JsonReader.setLenient(true) to accept malformed JSON at path$ on sending a file

Open perchibald opened this issue 8 years ago • 16 comments

Description

Devices and Versions

Your Rocket.Chat.Android version: (e.g. 2.3.1) Your Rocket.Chat Server version: (e.g. 0.65.1-develop)

Mobile device model and OS version: (e.g. "Xiaomi Redmi Note 4X - Android 7.0")

Steps to reproduce

when sending a file, an error pops up. "Use JsonReader.setLenient(true) to accept malformed JSON at path$"

Logs

perchibald avatar Jun 09 '18 04:06 perchibald

@perchibald What kind of file were you sending?

philipbrito avatar Jun 12 '18 20:06 philipbrito

any

perchibald avatar Jun 13 '18 05:06 perchibald

@perchibald What's your server URL?

rafaelks avatar Jun 14 '18 08:06 rafaelks

chat.shininvest.ru

perchibald avatar Jun 14 '18 10:06 perchibald

I have this same error when attempting to upload any files from my phone to Rocket.Chat.

Devices and Versions:

Rocket.Chat Android Version 2.4 Rocket.Chat Service Version .65.2 Mobile Device Model and OS Version: Pixel 2 XL Android P Build # PPP3.180510.008

This is also happening on other phones in my department that are not running the Android P Dev Preview.

Please advise.

bnngld avatar Jun 20 '18 14:06 bnngld

Any news?

bnngld avatar Jun 26 '18 14:06 bnngld

@bnngld As soon as we got news/fixes we'll cite or reference it here.

philipbrito avatar Jun 26 '18 23:06 philipbrito

We're able to send any file format successfully now. Also, just for information, before sending a file a dialog is show and you can send that with a description too.

philipbrito avatar Jul 21 '18 13:07 philipbrito

I get this issue on the Android app with video files only. They are not very big either. Even having a description included still causes the issue

fromage9747 avatar Sep 30 '18 08:09 fromage9747

@fromage9747 Test on latest version 0.70.0 with the latest app and if the bug still exists open a new bug and reference this one please.

reetp avatar Sep 30 '18 23:09 reetp

@reetp Confirmed that I am running the latest version of the Mobile APP and the server. I tested this again on the legacy app and the video upload works without any issue. The issue is present in the latest Mobile APP. I will create a new bug and reference this one.

fromage9747 avatar Oct 01 '18 03:10 fromage9747

I have a end user also getting this on a 0.70.4 when attempting to send pictures

luckenbach avatar Nov 19 '18 17:11 luckenbach

I'm having the exact same issue ... I cannot upload any kind of file ... using the Normal Android way, I need to select File Upload way. Also ... I cannot Upload from Recent files ... I need to navigate to images after I click the '+' sign on the app. I'm using latest EVERYTHING. Specs: Note 8: Android 8.0.0 Android app: V 3.1.1 Nov 5, 2018 Server: Ver: 0.71.1 Commit: e73dc78ffda9555fb98465ed94632473e6d63240

vampirismtrueblood avatar Nov 25 '18 02:11 vampirismtrueblood

@vampirismtrueblood Please check this comment to see the solution: https://github.com/RocketChat/Rocket.Chat.Android/issues/1862#issuecomment-440640888.

rafaelks avatar Nov 25 '18 22:11 rafaelks

@rafaelks, thanks for the response, however I highly doubt I'm hitting max_body on nginx ... I'll give it a try though ..

The reason being that

  1. It's working great on older app version
  2. The same file could be uploaded using "Images" category as opposed to using "Recent" ... Seems like perms problem.

Also notice that I can upload file using Non-Android way ... I.e you're always given an option to upload file the "Normal way" or the "File upload way" ... I'll feedback once I get to it though.

Thanks @rafaelks

vampirismtrueblood avatar Nov 25 '18 23:11 vampirismtrueblood

I have the same problem on the latest Android App: Uploading using Files from the "Recent..." Folder is not possible and gives us that JsonReader.setLenient Message. Uploading on Desktop Client is working, uploading from the Android App with a direct Path is also possible.

joside avatar Aug 12 '19 08:08 joside