MoeMemosAndroid icon indicating copy to clipboard operation
MoeMemosAndroid copied to clipboard

无法登陆,Use JsonReader.setLenient(true) to accept malformed JSON at path $错误

Open mintisan opened this issue 2 years ago • 5 comments

我用客户端 Moe Memos 用 Open API 的方式,提示 Use JsonReader.setLenient(true) to accept malformed JSON at path $错误,不知道哪里出问题,不知道楼主或者大家有没有 【网页端是可以登陆使用的】

mintisan avatar Jan 01 '23 04:01 mintisan

版本是 v0.4.1

mintisan avatar Jan 01 '23 04:01 mintisan

I can't reproduce this issue with Open API login and Memos 0.9.1. Could you please reply with the output of this API with your web browser:

https://{YOUR_MEMOS_HOST}/api/user/me

Please make sure to remove the JSON value of your personal information such as email and openId.

BTW, does Username/Password login work for you?

mudkipme avatar Jan 01 '23 05:01 mudkipme

Same issue:

{
  "data": {
    "id": 1,
    "rowStatus": "NORMAL",
    "createdTs": 1684387399,
    "updatedTs": 1684392093,
    "username": "ederson",
    "role": "HOST",
    "email": "secret",
    "nickname": "Ederson Santos",
    "openId": "secret",
    "avatarUrl": "",
    "userSettingList": [
      {
        "UserID": 1,
        "key": "locale",
        "value": "\"pt-BR\""
      }
    ]
  }
}

I'm behind Cloudflare tunnel and user+password report the same message MoeMemos version 0.6.1 Memos version 0.12.2

Screenshot_20230518-084503

edersong avatar May 18 '23 07:05 edersong

I'm having the same issue. I'm also behind a Cloudflare tunnel for Memos on my unRAID server. That being said, I temporarily bypassed it and it still get the same "malformed" error as above.

Username and password gives a different error:

baseUrl must end in /: https://{mydomain}/api/memo?openId={myopenID}

NOTE:

Using my IP instead of the Cloudflare DNS name allows Moe to connect. Obviously this only works on local network but is there a possibility to implement SSO that plays nice with CF?

FatherRedbeard avatar May 22 '23 15:05 FatherRedbeard

I had the same problem, but my problem has been solved. My memos is built on the nas through docker, and then the internal network is penetrated to map the port to the external network. Since I have set up the nas access IP verification (there are other verification methods, such as WeChat, Oauth2.0, etc.), it needs to be done in advance. Use the tool to verify the IP of the mobile phone, and moe memos can log in normally.

pfeak avatar Jul 19 '23 02:07 pfeak