Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to log in using TTRSS-Reader on Android #70

csolisr opened this issue Nov 1, 2019 · 5 comments

Unable to log in using TTRSS-Reader on Android #70

csolisr opened this issue Nov 1, 2019 · 5 comments


Copy link

@csolisr csolisr commented Nov 1, 2019

When attempting to log in using TTRSS-Reader for Android, the following error message appears:

Exception-Message: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ No Exception-Cause available.

Upon digging on the documentation, I tested logging in directly through CURL to check if the API was working correctly, but instead of outputting JSON it was outputting Yunohost's login page instead, even when using my credentials:

curl -d '{"op":"login","user":"insertuserhere","password":"insertpasswordhere"}' -L
<!DOCTYPE html>
  <meta charset="utf-8">
  <title>YunoHost Portal</title>

  <!-- Responsive -->
  <meta name="format-detection" content="telephone=no" />
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1" />

  <!-- Do not index SSOWat pages -->
  <meta name="robots" content="noindex, nofollow">

  <!-- Stylesheets -->
  <link rel="stylesheet" href="assets/css/ynh_portal.css">
  <link rel="stylesheet" href="assets/themes/default/custom_portal.css">

  <!-- Icons -->
  <link rel="shortcut icon" href="assets/icons/favicon.ico">
  <link rel="apple-touch-icon" sizes="57x57" href="assets/icons/apple-touch-icon-57x57.png">
  <link rel="apple-touch-icon" sizes="114x114" href="assets/icons/apple-touch-icon-114x114.png">
  <link rel="apple-touch-icon" sizes="72x72" href="assets/icons/apple-touch-icon-72x72.png">
  <link rel="apple-touch-icon" sizes="144x144" href="assets/icons/apple-touch-icon-144x144.png">
  <link rel="apple-touch-icon" sizes="60x60" href="assets/icons/apple-touch-icon-60x60.png">
  <link rel="apple-touch-icon" sizes="120x120" href="assets/icons/apple-touch-icon-120x120.png">
  <link rel="apple-touch-icon" sizes="76x76" href="assets/icons/apple-touch-icon-76x76.png">
  <link rel="apple-touch-icon" sizes="152x152" href="assets/icons/apple-touch-icon-152x152.png">
  <link rel="icon" type="image/png" href="assets/icons/favicon-196x196.png" sizes="196x196">
  <link rel="icon" type="image/png" href="assets/icons/favicon-160x160.png" sizes="160x160">
  <link rel="icon" type="image/png" href="assets/icons/favicon-96x96.png" sizes="96x96">
  <link rel="icon" type="image/png" href="assets/icons/favicon-16x16.png" sizes="16x16">
  <link rel="icon" type="image/png" href="assets/icons/favicon-32x32.png" sizes="32x32">
  <meta name="msapplication-TileColor" content="#41444f">
  <meta name="msapplication-TileImage" content="/mstile-144x144.png">
<body class="ynh-user-portal ">

  <div id="ynh-logo" class="ynh-logo">
    <span class="element-invisible">Yunohost</span>

  <div class="content">

    <div class="wrapper messages info">Please log in to access to this content</div>
<div class="ynh-wrapper login">
<form class="login-form" name="input" action="" method="post">
  <div class="form-group">
    <label class="icon icon-user" for="user"><span class="element-invisible">Username</span></label>
    <input id="user" type="text" name="user" placeholder="Username" class="form-text" autofocus required>
  <div class="form-group">
    <label class="icon icon-lock" for="password"><span class="element-invisible">Password</span></label>
    <input id="password" type="password" name="password" placeholder="Password" class="form-text" required>
  <input type="submit" value="Log in" class="btn classic-btn large-btn">


  <!-- Scripts -->
  <script src="assets/js/ynh_portal.js"></script>
  <script src="assets/themes/default/custom_portal.js"></script>

It looks like NGINX is not correctly recognizing the "/api" subdomain to be unmanaged by Yunohost. Is there anything I can do to configure it correctly from my side?


This comment has been minimized.

Copy link

@csolisr csolisr commented Nov 1, 2019

Relevant note: yes, I did make sure that "Enable API" was turned on in the settings. Also, I can use the HTML interface without problem.


This comment has been minimized.

Copy link

@noccio noccio commented Nov 3, 2019

I can confirm this error, either using two different clients for android either with the linux desktop client feedreader.

I report the error also in yunohost forum


This comment has been minimized.

Copy link

@csolisr csolisr commented Dec 2, 2019

Checking on that forum post, the devs commented there was an issue upstream with SSOWat that needed to be fixed first before being able to fix the issue here, here's the PR.


This comment has been minimized.

Copy link

@JimboJoe JimboJoe commented Dec 4, 2019

Tested OK on my side!
You can close that issue if that's the case for you 😉


This comment has been minimized.

Copy link

@csolisr csolisr commented Dec 5, 2019

Just checked with the latest update, and it's working again. Closing and thanks

@csolisr csolisr closed this Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.