enovation / moodle-atto_teamsmeeting

atto plugin
8 stars 9 forks source link

404 Error on creating Teams link on Moodle #24

Open shakirgill1169 opened 3 years ago

shakirgill1169 commented 3 years ago

On creating the link of Teams the error 404 is occurring. following is the attachment

Moodle version 3.9 image (2)

shakirgill1169 commented 3 years ago

Can anyone please suggest

weilai-irl commented 3 years ago

Hi @shakirgill1169,

From your screenshot, it looks like the meeting has been created correctly (as the meeting URL has been created), the iframe above it should be redirected to a page on your Moodle site, at an URL like https://URL.TO.MOODLE/lib/editor/atto/plugins/teamsmeeting/result.php?link=... Please make sure the URL on your Moodle site can be accessed.

Regards, Lai

weilai-irl commented 3 years ago

Hi @shakirgill1169,

Could you confirm if you have got this issue resolved please?

Regards, Lai

todog commented 3 years ago

The 404 error still appears to a problem with Moodle 3.9.3. My Moodle URL is accessible. Does anyone know of a fix?

sharetom commented 3 years ago

I have de same issue on Moodle 3.10. Does anyone know how fix this ?

weilai-irl commented 2 years ago

Hi all,

Our investigation suggests this may have something to do with server configurations. After a meeting is created, the configured Teams Meeting app will redirect the user back to a page with url such as below:

https://url.to.moodle/lib/editor/atto/plugins/teamsmeeting/result.php?link=https%3A%2F%2Fteams.microsoft.com%2Fl%2Fmeetup-join%2F19%253ameeting_NmI2ZGE4MDItYjcwZi00ZjBlLWIxMDEtNGY5ZWExZThmMDc2%2540thread.v2%2F0%3Fcontext%3D%257b%2522Tid%2522%253a%2522edf7cd5f-7389-4588-91fd-26d3990b5325%2522%252c%2522Oid%2522%253a%252274978669-da07-44fa-aa3d-da290581f1af%2522%257d&title=test+meeting&preview=%3Cdiv+style%3D%22width%3A100%25%3Bheight%3A+20px%3B%22%3E%0D%0A++++%3Cspan+style%3D%22white-space%3Anowrap%3Bcolor%3A%235F5F5F%3Bopacity%3A.36%3B%22%3E________________________________________________________________________________%3C%2Fspan%3E%0D%0A%3C%2Fdiv%3E%0D%0A+%0D%0A+%3Cdiv+class%3D%22me-email-text%22+style%3D%22color%3A%23252424%3Bfont-family%3A%27Segoe+UI%27%2C%27Helvetica+Neue%27%2CHelvetica%2CArial%2Csans-serif%3B%22+lang%3D%22en-GB%22%3E%0D%0A++++%3Cdiv+style%3D%22margin-top%3A+24px%3B+margin-bottom%3A+20px%3B%22%3E%0D%0A++++++++%3Cspan+style%3D%22font-size%3A+24px%3B+color%3A%23252424%22%3EMicrosoft+Teams+meeting%3C%2Fspan%3E%0D%0A++++%3C%2Fdiv%3E%0D%0A++++%3Cdiv+style%3D%22margin-bottom%3A+20px%3B%22%3E%0D%0A++++++++%3Cdiv+style%3D%22margin-top%3A+0px%3B+margin-bottom%3A+0px%3B+font-weight%3A+bold%22%3E%0D%0A++++++++++%3Cspan+style%3D%22font-size%3A+14px%3B+color%3A%23252424%22%3EJoin+on+your+computer+or+mobile+app%3C%2Fspan%3E%0D%0A++++++++%3C%2Fdiv%3E%0D%0A++++++++%3Ca+class%3D%22me-email-headline%22+style%3D%22font-size%3A+14px%3Bfont-family%3A%27Segoe+UI+Semibold%27%2C%27Segoe+UI%27%2C%27Helvetica+Neue%27%2CHelvetica%2CArial%2Csans-serif%3Btext-decoration%3A+underline%3Bcolor%3A+%236264a7%3B%22+href%3D%22https%3A%2F%2Fteams.microsoft.com%2Fl%2Fmeetup-join%2F19%253ameeting_NmI2ZGE4MDItYjcwZi00ZjBlLWIxMDEtNGY5ZWExZThmMDc2%2540thread.v2%2F0%3Fcontext%3D%257b%2522Tid%2522%253a%2522edf7cd5f-7389-4588-91fd-26d3990b5325%2522%252c%2522Oid%2522%253a%252274978669-da07-44fa-aa3d-da290581f1af%2522%257d%22+target%3D%22_blank%22+rel%3D%22noreferrer+noopener%22%3EClick+here+to+join+the+meeting%3C%2Fa%3E%0D%0A++++%3C%2Fdiv%3E%0D%0A++++%3Cdiv+style%3D%22margin-bottom%3A20px%3B+margin-top%3A20px%22%3E%0D%0A++++%3Cdiv+style%3D%22margin-bottom%3A4px%22%3E%0D%0A++++++++%3Cspan+data-tid%3D%22meeting-code%22+style%3D%22font-size%3A+14px%3B+color%3A%23252424%3B%22%3E%0D%0A++++++++++++Meeting+ID%3A+%3Cspan+style%3D%22font-size%3A16px%3B+color%3A%23252424%3B%22%3E354+676+236+806%3C%2Fspan%3E%0D%0A+++++++%3C%2Fspan%3E%0D%0A++++++++%0D%0A++++++++%3Cdiv+style%3D%22font-size%3A+14px%3B%22%3E%3Ca+class%3D%22me-email-link%22+style%3D%22font-size%3A+14px%3Btext-decoration%3A+underline%3Bcolor%3A+%236264a7%3Bfont-family%3A%27Segoe+UI%27%2C%27Helvetica+Neue%27%2CHelvetica%2CArial%2Csans-serif%3B%22+target%3D%22_blank%22+href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-teams%2Fdownload-app%22+rel%3D%22noreferrer+noopener%22%3E%0D%0A++++++++Download+Teams%3C%2Fa%3E+%7C+%3Ca+class%3D%22me-email-link%22+style%3D%22font-size%3A+14px%3Btext-decoration%3A+underline%3Bcolor%3A+%236264a7%3Bfont-family%3A%27Segoe+UI%27%2C%27Helvetica+Neue%27%2CHelvetica%2CArial%2Csans-serif%3B%22+target%3D%22_blank%22+href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fmicrosoft-teams%2Fjoin-a-meeting%22+rel%3D%22noreferrer+noopener%22%3EJoin+on+the+web%3C%2Fa%3E%3C%2Fdiv%3E%0D%0A++++%3C%2Fdiv%3E%0D%0A+%3C%2Fdiv%3E%0D%0A++++%0D%0A++++++%0D%0A++++%0D%0A++++%0D%0A++++%0D%0A++++%3Cdiv+style%3D%22margin-bottom%3A+24px%3Bmargin-top%3A+20px%3B%22%3E%0D%0A++++++++%3Ca+class%3D%22me-email-link%22+style%3D%22font-size%3A+14px%3Btext-decoration%3A+underline%3Bcolor%3A+%236264a7%3Bfont-family%3A%27Segoe+UI%27%2C%27Helvetica+Neue%27%2CHelvetica%2CArial%2Csans-serif%3B%22+target%3D%22_blank%22+href%3D%22https%3A%2F%2Faka.ms%2FJoinTeamsMeeting%22+rel%3D%22noreferrer+noopener%22%3ELearn+more%3C%2Fa%3E++%7C+%3Ca+class%3D%22me-email-link%22+style%3D%22font-size%3A+14px%3Btext-decoration%3A+underline%3Bcolor%3A+%236264a7%3Bfont-family%3A%27Segoe+UI%27%2C%27Helvetica+Neue%27%2CHelvetica%2CArial%2Csans-serif%3B%22+target%3D%22_blank%22+href%3D%22https%3A%2F%2Fteams.microsoft.com%2FmeetingOptions%2F%3ForganizerId%3D74978669-da07-44fa-aa3d-da290581f1af%26tenantId%3Dedf7cd5f-7389-4588-91fd-26d3990b5325%26threadId%3D19_meeting_NmI2ZGE4MDItYjcwZi00ZjBlLWIxMDEtNGY5ZWExZThmMDc2%40thread.v2%26messageId%3D0%26language%3Den-GB%22+rel%3D%22noreferrer+noopener%22%3EMeeting+options%3C%2Fa%3E+%0D%0A++++++%3C%2Fdiv%3E%0D%0A%3C%2Fdiv%3E%0D%0A%3Cdiv+style%3D%22font-size%3A+14px%3B+margin-bottom%3A+4px%3Bfont-family%3A%27Segoe+UI%27%2C%27Helvetica+Neue%27%2CHelvetica%2CArial%2Csans-serif%3B%22%3E%0D%0A%0D%0A%3C%2Fdiv%3E%0D%0A%3Cdiv+style%3D%22font-size%3A+12px%3B%22%3E%0D%0A%0D%0A%3C%2Fdiv%3E%0D%0A%0D%0A%3C%2Fdiv%3E%0D%0A%3Cdiv+style%3D%22width%3A100%25%3Bheight%3A+20px%3B%22%3E%0D%0A++++%3Cspan+style%3D%22white-space%3Anowrap%3Bcolor%3A%235F5F5F%3Bopacity%3A.36%3B%22%3E________________________________________________________________________________%3C%2Fspan%3E%0D%0A%3C%2Fdiv%3E&session=sOKLY5TtSp

Note that the URL contains an extremely long query string. In this particular case, the string has almost 5,000 characters.

We found out that some web servers, e.g. IIS (from the screenshot of the original post, the 404 error page seems to be from an ISS server), would return 404 error if the query string is longer than allowed, which could be the cause of the reported issue.

Please try to update the your server setting to allow for longer query string, maybe use 6,000 for safety. For IIS, the configuration is at -> -> -> , in the "maxQueryString" attribute.

Ref: https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/requestlimits/ Ref: https://stackoverflow.com/questions/28681366/in-asp-net-mvc-would-a-querystring-too-long-result-in-404-file-not-found-error

Please give it a try and post back if this solves the issue.

Regards, Lai