Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Error on creating Teams link on Moodle #24

Open
shakirgill1169 opened this issue Oct 7, 2020 · 6 comments
Open

404 Error on creating Teams link on Moodle #24

shakirgill1169 opened this issue Oct 7, 2020 · 6 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@shakirgill1169
Copy link

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

Moodle version 3.9
image (2)

@shakirgill1169
Copy link
Author

Can anyone please suggest

@weilai-irl
Copy link
Member

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

@nenorojas nenorojas added help wanted Extra attention is needed question Further information is requested labels Oct 27, 2020
@weilai-irl
Copy link
Member

Hi @shakirgill1169,

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

Regards,
Lai

@todog
Copy link

todog commented Feb 18, 2021

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
Copy link

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

@weilai-irl
Copy link
Member

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 <system.webServer> -> -> -> , 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants