Share via

sharepoint giving GET https://[xxx].sharepoint.com/sites/[xxx]/_api/v2.1/drives/[xxx]/items/[xxx]/content 404 (Not Found)

Anonymous
2023-12-01T18:39:54+00:00

When embedding a URL of https://[xxx].sharepoint.com/sites/[xxx]/_layouts/15/embed.aspx?UniqueId=[xxx]&referrer=StreamWebApp&referrerScenario=EmbedDialog.Create in my website, I get a 404 error message like the following

GET https://[xxx].sharepoint.com/sites/[xxx]/_api/v2.1/drives/[xxx]/items/[xxx]/content 404 (Not Found)

However, the video is displaying correctly on the website. How do I resolve this error message? When I embed a YouTube link instead, I do not get the error message.

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2023-12-06T06:32:13+00:00

    Dear anon1_324,

    Good day! Thank you for your reply to Microsoft Community. We are happy to help you.

    I read your reply carefully. And I tested multiple times. I got the same error as you.

    .

    {
     "error": {
     "code": "itemNotFound",
     "message": "The stream could not be found."
     }
    }
    

    And the reason is the site (https://www.w3schools.com) doesn’t have permission to view the content of Steam. You need to set authentication from a third-party website. You can view the video because you already login to the account. try to go to the incognito window. You will be prompted to login. conclusion when you embed a code to a custom site you need to set up an authentication method in third-party site.

    .

    I found that if you would like assistance to debug or write such a script, "Unified support" could be able to help. Kindly notice that Unified support is paid service. You may have to sign contraction with MS first to get this type of service if you didn't do it before.

    Support limitations for issues with Microsoft 365 Apps - Microsoft 365 | Microsoft Learn

    .

    To further investigate about the issue We’d suggest you contact your office 365 administrator to go to Office 365 Admin Center-> Support-> New Service Request, the support engineers there have the correct escalation channel and this is the most efficient way to report such issue.You can refer to this article to check the way how to raise a ticket. Ways to contact support for business products - Admin help. The engineers in related team have higher permission and resources than us and they may help check it from background.

    If there is any misunderstanding, please feel free to correct me.

    Have a nice day!

    Best regards,

    0 comments No comments
  2. Anonymous
    2023-12-04T15:27:40+00:00

    This is not an issue on my side. I simply took the embed url from a sharepoint video and pasted it and got the same error. I can reproduce this error for you as well. Let me give you more details below.

    1. Navigate to sharepoint site and retrieve sharepoint embed url

    1. Copy the embed url section into a public editor I will use w3 schools as an example (https://www.w3schools.com/html/tryit.asp?filename=tryhtml_editor) 


    3. Look at developer tools (in chrome). You can see that even though the video is loading, there are error messages displayed in console

    0 comments No comments
  3. Anonymous
    2023-12-02T06:33:28+00:00

    Dear anon1_324,

    Good day! Thank you for posting to Microsoft Community. We are happy to help you.

    From your description It seems sharepoint giving GET https://[xxx].sharepoint.com/sites/[xxx]/_api/v2.1/drives/[xxx]/items/[xxx]/content 404 (Not Found)behavior from your side.

    apologized situation you encountered, we do understand the inconvenience caused and apologize for it.

    I read your question carefully and API authorization issue is on the developer related scope. We would love to assist you further on your request; however, this is beyond our expertise. Personally. we suggest you post the request on our developer communityMicrosoft developer community, so you can be assisted accordingly.

    Your understanding and patience will be highly appreciated.

    If there is any misunderstanding, please feel free to correct me.

    Have a nice day!

    Best regards,

    0 comments No comments
  4. Anonymous
    2023-12-01T19:00:21+00:00

    Dear anon1_324,

    Good day!

    Thanks for posting in the Microsoft Community. We're happy to help. We're looking into your situation and will update you soon.

    Appreciate their patience and understanding and thank them for their time and cooperation.

    Sincerely

    Waqas Muhammed

    0 comments No comments