• Resolved rponwp

    (@rponwp)


    Hello,
    when I try to log in to my nextcloud with the plugin, the error “Unrecognised response when requesting Nextcloud user data” always appears.

    The logfile:

    [2022-07-10 17:36:32] Error: Unrecognised response when requesting Nextcloud user data
    [2022-07-10 17:36:33] State Set as Session: 2b262e879ae9d625a400
    [2022-07-10 17:36:33] Authorize URL: http://localhost/login/index.php/apps/oauth2/authorize?response_type=code&client_id=PCsn92r9zQkOlWFJwQMPNLt6fdFvenM4iCWRXICXuFd7RpConS2hPdeDIz617336&redirect_uri=http%3A%2F%2Flocalhost%2Fsite&state=2b262e879ae9d625a400&scope=openid
    [2022-07-10 17:36:35] Received State Back: 2b262e879ae9d625a400
    [2022-07-10 17:36:35] URL: http://localhost/login/index.php/apps/oauth2/api/v1/token, Response: {"access_token":"ZbUT8D7yscrhc2CM4JG7YZwhgPeIlUDgG1ztHOHdxv4zGeiJFOYGIwbuaTCxlP9SykHyk9vR","token_type":"Bearer","expires_in":3600,"refresh_token":"HMopY66hux8XyH2jhIKNABOlR2CCoWtgkPj9tr2DIs0H1f51wF61rIjrDtDKnnzvsf0sRDiwmKPZo3BPF1hKbKeZiHFkcxBzGvKu5k4eku4ZJOq22jRreR7WZU3CZ6zF","user_id":"Admin"}
    [2022-07-10 17:36:35] URL: http://localhost/login/ocs/v2.php/cloud/user?format=json, Response: {"ocs":{"meta":{"status":"failure","statuscode":997,"message":"Current user is not logged in"},"data":[]}}
    [2022-07-10 17:36:35] Unrecognised response when requesting Nextcloud user data, response: {"ocs":{"meta":{"status":"failure","statuscode":997,"message":"Current user is not logged in"},"data":[]}}
    [2022-07-10 17:36:35] Error: Unrecognised response when requesting Nextcloud user data

    I hope that you can help me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tim Oxendale

    (@timssolutions)

    Hey, thanks for the info, what version of Nextcloud are you using? When the plugin is trying to retrieve the user details it’s getting a 997 error from Nextcloud (current user is not logged in).

    Can you check on your Nextcloud server that Apache mod_headers, mod_rewrite and mod_env are enabled?

    Thread Starter rponwp

    (@rponwp)

    Hello,
    the Apache-Modules mod_headers, mod_rewrite, mod_env are enabled.
    I have the Nextcloud version 24.0.2.
    Greetings

    Plugin Author Tim Oxendale

    (@timssolutions)

    Hey, I have to say I’m not to sure…

    On step 3 on the settings page, when you click test connection, does that come back ok?

    Do you have any two-factor authentication on for the account in Nextcloud?

    Thread Starter rponwp

    (@rponwp)

    Hello,
    when i click test connection, come back “ok”.
    I don’t have any two-factor authentication for the nextcloud account.
    I only use the Plugin “Social Login”, but even without the plugin the error occurs.

    Plugin Author Tim Oxendale

    (@timssolutions)

    Hey, it’s going to be a problem with Nextcloud, I have set up a fresh install of version 24.0.2 in a subfolder with Pretty Links disabled and it worked as expected.

    When searching the 997 error in Nextcloud it always just seems to be some kind of Nextcloud install issue, are you able to try and reinstall Nextcloud?

    Thread Starter rponwp

    (@rponwp)

    How can I disable Pretty Links?
    I can reinstall Nextcloud.

    Plugin Author Tim Oxendale

    (@timssolutions)

    Hey, looking at your log they already are disabled, the plugin will work with enabled/disabled Pretty Links, you just need to alter the Nextcloud URL in the settings. If Pretty Links are disabled you just need to add /index.php/ to the end of the Nextcloud URL.

    The test connection button will flag if it’s not right.

    Thread Starter rponwp

    (@rponwp)

    I have reinstalled Nextcloud, but the same error occurs again.

    Plugin Author Tim Oxendale

    (@timssolutions)

    Hey, not sure what else to suggest. it’s got to be a problem with Nextcloud or the dependencies it needs. Maybe head over to the Nextcloud forum and post about not being able to access the OCS API and see if you get any further joy there.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘nc-sso-error=unexpected’ is closed to new replies.