Skip to content

"The requested scope is invalid, unknown or malformed" #596

Open

Description

@Rhialto

I tried to log in on oldbytes.space and got a screen with "The requested scope is invalid, unknown or malformed".
Is that an issue of AndStatus, or that particular instance?

Activity

  1. asterismo commented on Nov 26, 2024

    @asterismo

    Me too

  2. yvolk commented on Dec 2, 2024

    @yvolk
    Member

    The issue with scopes is probably caused by some recent Mastodon changes.
    I see some note in its docs: https://docs.joinmastodon.org/api/oauth-scopes/#oauth-scopes
    New "profile" scope is mentioned there.
    So we need to update AndStatus.

    As a hotfix the "profile" scope could be added here: https://github.com/andstatus/andstatus/blob/master/app/src/main/kotlin/org/andstatus/app/net/http/HttpConnection.kt#L37

  3. yvolk commented on Dec 8, 2024

    @yvolk
    Member

    Thank you for report, @Rhialto and @asterismo.
    I fixed this in v.62.00, see #456

    It appeared that my old Client registration hotfix for Mastodon stopped working, because Mastodon fixed this at its side. I had to adapt my code for that.

  4. asterismo commented on Dec 8, 2024

    @asterismo

    Oh great, i'll test the new apk of AndStatus. Thank you very much.

  5. asterismo commented on Dec 8, 2024

    @asterismo

    I just tried the apk and it fails to install. The previous version i installed was org.andstatus.app_365.apk. Is there anythinfg different?

    adb install AndStatus-62.00-release.apk
    Performing Push Install
    AndStatus-62.00-release.apk: 1 file pushed, 0 skipped. 4.9 MB/s (8927842 bytes in 1.745s)
    pkg: /data/local/tmp/AndStatus-62.00-release.apk
    Failure [INSTALL_FAILED_OLDER_SDK]

  6. yvolk commented on Dec 8, 2024

    @yvolk
    Member

    @asterismo I see that the app starts and logins normally on Android 8 emulator,
    and I got the same exception as you see on Android 7 device.
    Which Android version does your device have?

    I slightly lowered version of https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 library, and now AndStatus starts on Android 7 (API 24). Please try the attached zipped apk

    AndStatus-62.00-commons-lang3-15.zip

  7. asterismo commented on Dec 8, 2024

    @asterismo

    Well, i'm using a Sonim XP5800 which runs a proprietary version of Android 7.1. It is a non-touch device and AndStatus still pretty compatible with button/arrow use of the app. The fdroid version i mentioned, worked fine. These two versions you just provided did not.

  8. yvolk commented on Dec 9, 2024

    @yvolk
    Member

    Could you post error messages here, maybe I could fix that also.

  9. asterismo commented on Dec 10, 2024

    @asterismo

    I can only sideload the app with ADB, i only get that error, maybe you have increased the minSdkVersion for AndStatus. Is there any adb install --debig option i can try?

  10. yvolk commented on Dec 11, 2024

    @yvolk
    Member

    I just tested adb install to Android 7.0 emulator, and it succeeded

    "c:\android\android-sdk\platform-tools\adb" -e install -r c:\android\app\AndStatus\Package\AndStatus-62.01-release.apk
    Performing Streamed Install
    Success
    Press any key to continue . . .
    

    Then I launched AndStatus on the emulator and successfully logged into mstdn.io Mastodon instance.

    So I think that you need to update Android SDK on your computer!
    image

  11. Rhialto commented on Dec 29, 2024

    @Rhialto
    Author

    With the latest update I installed (where can I see the version?) it only got worse.

    In the andstatus screen where I fill in the host name of the Mastodon server, I fill in "oldbytes.space" and press the button "LOG IN TO MASTODON".

    Below the horizontal line below the input field, I then see
    Latest error
    Invalid OAuth scope.

    I don't even get to the login page of the Mastodon instance.

  12. yvolk commented on Jan 1, 2025

    @yvolk
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions