Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved TTRSS - API Invalid ID

    Support
    2
    17
    668
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JLX89 last edited by

      Hello All!
      I'm trying to setup access to Tiny Tiny RSS using the API and connecting using the TTRSS Android App. When I try to connect, I'm getting an invalid user/password.

      I'm using an app password, but it doesn't seem to be working.

      Android Log File:

      01-27 20:43:34.770 30290 30290 E org.fox.ttrss: Invalid ID 0x00000000.
      01-27 20:43:34.770 30290 30290 E org.fox.ttrss: Invalid ID 0x00000000.

      TTRSS Log File:

      Jan 27 20:45:52 [Wed Jan 27 11:45:52.572442 2021] [php7:warn] [pid 138] [client X.X.X.X:38648] PHP Warning: Failed login attempt for [USERNAME] from X.X.X.X in /app/code/classes/api.php on line 84
      Jan 27 20:45:52 X.X.X.X - - [27/Jan/2021:11:45:52 +0000] "POST /api/ HTTP/1.1" 200 445 "-" "Tiny Tiny RSS (Android) 1.296 (530) Dalvik/2.1.0 (Linux; U; Android 11; [Device Type])"
      Jan 27 20:46:00 X.X.X.X - - [27/Jan/2021:11:46:00 +0000] "GET / HTTP/1.1" 200 777 "-" "Mozilla (CloudronHealth)"

      Any thoughts on this? I did see some other topics, but wasn't sure if that issue with the API was fixed or not?

      Thank you,
      Justin

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @JLX89 last edited by

        @jlx89 It seems to just work for me. I had to just enable the API. From the logs it looks like the password might be wrong?

        7d88f383-a18b-449d-96fa-5947f1063257-image.png

        J 1 Reply Last reply Reply Quote 0
        • J
          JLX89 @girish last edited by

          @girish Yeah, I enabled the API -- but I was using the App Password. I've tried two different App Passwords and seem to be having the same issue.

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @JLX89 last edited by girish

            @jlx89 I checked with app password as well and seems to work. I just noticed there are different TTRSS apps. I am using https://play.google.com/store/apps/details?id=org.ttrssreader . Is that the same as you are testing?

            edit: from the logs, it seems you are trying https://play.google.com/store/apps/details?id=org.fox.ttrss . let me try that.

            J 1 Reply Last reply Reply Quote 0
            • J
              JLX89 @girish last edited by

              @girish Sure is, same app and same version.

              girish 2 Replies Last reply Reply Quote 0
              • girish
                girish Staff @JLX89 last edited by

                @jlx89 App password works for me in the org.fox.ttrss app as well. mm, wonder how we can test this.

                1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff @JLX89 last edited by girish

                  @jlx89 Can you quickly test if the one time password works in the desktop browser? That will atleast remove any issue around typing the password on mobile.

                  I also installed the reader app on the demo instance:

                  URL https://reader.demo.cloudron.io
                  username: cloudron
                  password: 45dbb9db9c01b53d
                  

                  Does the above work for you in the app?

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    JLX89 @girish last edited by

                    @girish Yeah, just gave that a shot and it works.

                    girish 1 Reply Last reply Reply Quote 0
                    • girish
                      girish Staff @JLX89 last edited by

                      @jlx89 As in the 1-time password works on the browser? If so, it's then probably some typing issue on mobile probably since it's all the same mechanism.

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        JLX89 @girish last edited by

                        @girish Yeah, I had tried that before posting on the forums. It doesn't work there either. Although, not sure if it matters but this is listed next to the app pass: Last Used: Thu, Jan 01 1970 - 9:00.

                        girish 2 Replies Last reply Reply Quote 0
                        • girish
                          girish Staff @JLX89 last edited by

                          @jlx89 oh. looks like you are testing some other functionality. Is this tiny tiny rss app password feature? I was actually testing out Cloudron's app password feature - https://docs.cloudron.io/profile/#app-passwords

                          J 1 Reply Last reply Reply Quote 0
                          • girish
                            girish Staff @JLX89 last edited by

                            @jlx89 Right. So, TTRSS app password feature won't work since it wants to use auth_internal. On Cloudron, we use auth_ldap so that it integrates with Cloudron user management. What you can do is to generate app password on Cloudron instead of TTRSS.

                            97492957-d91e-4ac0-ad27-aa6e67b36561-image.png

                            J 1 Reply Last reply Reply Quote 0
                            • J
                              JLX89 @girish last edited by JLX89

                              @girish I was actually using the app password inside TTRSS. I didn't see an option to add the App Password inside Cloudron for TTRSS.

                              alt text

                              @girish Yes, I was trying it from the "App Passwords", not the OTA Screen.

                              girish 1 Reply Last reply Reply Quote 0
                              • J
                                JLX89 @girish last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • girish
                                  girish Staff @JLX89 last edited by

                                  @jlx89 Right, that's a bug. So, if you go to Settings -> Check for updates. It will provide an update to 6.1.1. If you update, it has the fix for this bug. (The update will say it's unstable, but it should be fine to update).

                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    JLX89 @girish last edited by

                                    @girish Ok, perfect -- updating now, will let you know how that turns out. Thank you so much for your help!

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      JLX89 last edited by

                                      @girish That did the trick, thank you so much!

                                      1 Reply Last reply Reply Quote 1
                                      • First post
                                        Last post
                                      Powered by NodeBB