about malformed (400) error displayed on webapp

35 views
Skip to first unread message

Leo Chang

unread,
Jul 19, 2025, 1:07:18 AMJul 19
to Tinode General
this error occurred sometimes ,there seems to be no influence on using. also no malformed (400) error in tinode.log . Why this error occured? Is it related to webapp but not with tinode server ? Any solution to remove this annoying alerts? Thanks.And my tinode runs on docker .

屏幕截图 2025-07-19 125904.jpg

Leo Chang

unread,
Jul 19, 2025, 1:13:38 AMJul 19
to Tinode General
browser log  shows this 

tinode.js:475
[04:58:23.385] in: {"ctrl":{"id":"77278","topic":"fnd","code":400,"text":"malformed","ts":"2025-07-19T04:58:23.135Z"}}

tinode.js:475    is       console.log('[' + dateString + ']', str, args.join(' '));

Gene

unread,
Jul 19, 2025, 2:33:22 AMJul 19
to Tinode General
Please show the logs.

Leo Chang

unread,
Jul 19, 2025, 3:08:47 AMJul 19
to Tinode General
this is the  log file when malformed (400) error occured
tinode.log

Gene

unread,
Jul 19, 2025, 3:40:39 AMJul 19
to Tinode General
I see the reason: the search string is too short. I guess I can just remove the 400 error for such cases.

Leo Chang

unread,
Jul 19, 2025, 4:18:39 AMJul 19
to Tinode General
thanks in advance . 
And some questions else 
1.in tinode only alice's account can be searched by search word like  alice,  other accounts created by users only can be searched by eamil after eamil verification or by account id .Am I right ? And how to make other accounts can be searched by account name like alice?
2.about docker env  parameter MYSQL_DSN ,I set it   MYSQL_DSN: 'root:123456@tcp(localhost)/tinode?parseTime=true&collation=utf8mb4_0900_ai_ci'  in dockercompose file  to add password ,but it makes tinode server fails to boot. mysql image version tag is 8.0.
3.abou the file size limitation ,  is there a size limitation to file uploaded to tinode ?

Gene

unread,
Jul 19, 2025, 9:30:36 AMJul 19
to Tinode General
On Saturday, July 19, 2025 at 11:18:39 AM UTC+3 Leo Chang wrote:
thanks in advance . 
And some questions else 
1.in tinode only alice's account can be searched by search word like  alice,  other accounts created by users only can be searched by eamil after eamil verification or by account id .Am I right ? And how to make other accounts can be searched by account name like alice?

 
2.about docker env  parameter MYSQL_DSN ,I set it   MYSQL_DSN: 'root:123456@tcp(localhost)/tinode?parseTime=true&collation=utf8mb4_0900_ai_ci'  in dockercompose file  to add password ,but it makes tinode server fails to boot. mysql image version tag is 8.0.

Please show the logs
 
3.abou the file size limitation ,  is there a size limitation to file uploaded to tinode ?

Leo Chang

unread,
Jul 19, 2025, 2:59:44 PMJul 19
to Tinode General
About question 2, In config.template , it's  "dsn": "$MYSQL_DSN?parseTime=true&collation=utf8mb4_unicode_ci"
,the right MYSQL_DSN  env in dockercompose file should be   MYSQL_DSN: root:123456@tcp(localhost)/tinode

And in instruction , it says  ,If you set EXT_CONFIG all other environment variables except RESET_DB, FCM_SENDER_ID, FCM_VAPID_KEY are ignored.

Would  EXT_STATIC_DIR and WAIT_FOR be ignored too? They are not in the tinode.conf file.If ignored ,how to set them .thanks

Gene

unread,
Jul 20, 2025, 3:32:50 AMJul 20
to Tinode General
On Saturday, July 19, 2025 at 9:59:44 PM UTC+3 Leo Chang wrote:
About question 2, In config.template , it's  "dsn": "$MYSQL_DSN?parseTime=true&collation=utf8mb4_unicode_ci"
,the right MYSQL_DSN  env in dockercompose file should be   MYSQL_DSN: root:123456@tcp(localhost)/tinode

 

And in instruction , it says  ,If you set EXT_CONFIG all other environment variables except RESET_DB, FCM_SENDER_ID, FCM_VAPID_KEY are ignored.

Would  EXT_STATIC_DIR and WAIT_FOR be ignored too? They are not in the tinode.conf file.If ignored ,how to set them .thanks

Reply all
Reply to author
Forward
0 new messages