Connection Error between NextCloud and Moodle

Connection Error between NextCloud and Moodle

by Paul Raper -
Number of replies: 1

When I try to authenticate between Moodle and Next Cloud, I receive the following Error:

Could not upgrade OAuth 2 token. HTTP status for remote endpoint: 401

It would appear that this came up in a Moodle Tracker back in February this year as: Improve OAuth 2 exception information Tracker MDL-70282 and is marked off as fixed. The question is, why is it still appearing?


Average of ratings: -
In reply to Paul Raper

Re: Connection Error between NextCloud and Moodle

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Hello, I made that change. The 401 (Unauthorized) is being sent by Nextcloud so that's where the problem is, the change in MDL-70282 doesn't alter that. But it does mean that if you enable debugging in Moodle (Debug messages: DEVELOPER, Display debug messages: Yes) you should then see any error messages that Nextcloud is sending which may help resolve the issue.