lucisgit / moodle-repository_panopto

Panopto repository plugin for Moodle, compulsory part of Panopto resource module.
https://moodle.org/plugins/repository_panopto
0 stars 1 forks source link

Exception - "Unable to authenticate the user." #9

Open Richardvi opened 4 years ago

Richardvi commented 4 years ago

Using Moodle 3.7 I get this error randomly.

What I can do: Turn editing ON ADD Panopto Video resource Browse repository Search for videos. Results are erratic, sometimes a video is found, sometimes not. I can select a video I can insert that video and post it to a page. It results always in an error. The resource has been added to the page however, and when I click it I get:

_Exception - "Unable to authenticate the user."

More information about this error

×Debug info: Error code: generalexceptionmessage ×Stack trace: line 236 of /repository/panopto/lib/panopto/lib/Panopto/PublicAPI/4.6/UserManagement/UserManagement.php: SoapFault thrown line 236 of /repository/panopto/lib/panopto/lib/Panopto/PublicAPI/4.6/UserManagement/UserManagement.php: call to SoapClient->__soapCall() line 132 of /repository/panopto/locallib.php: call to Panopto\UserManagement\UserManagement->CreateExternalGroup() line 73 of /mod/panopto/view.php: call to repository_panopto_interface->create_externalgroup()

kabalin commented 4 years ago

Hi @Richardvi, thanks for report. Two things here:

Results are erratic, sometimes a video is found, sometimes not.

This might be cache related, there is a cache TTL setting that makes navigation faster, but newly added videos will appear in file picker after 300 seconds delay (by default). If your panopto site is small, try to disable it, see more here: https://github.com/lucisgit/moodle-repository_panopto#other-plugin-configuration-parameters

_Exception - "Unable to authenticate the user."

Difficult to say what exactly causing this. I suppose your Panopto version is not lower than 5.7? Are you sure the user you are using for API communication has admin rights in Panopto site? It looks to me that for some reason (either permission or version incompatibility) external group can't be created in your case.

Richardvi commented 4 years ago

Hi kabalin, Thanks for your response. We are at Panopto version 8.0.1.00017 and our site is huge.... maybe that's a problem?

I disabled the cache, but still the same problem. I will post a video of it later so you can see what happens.

AhmedElmaghraby207 commented 1 year ago

Hi guys, I'm having this issue, Anyone found the solution?