Jun 29 2022 12:23 AM
Hello,
We are using Yammer embed widget to display feeds from community onto a classic SharePoint page.
This does not work most of the time and we see an error as below.
The embed code looks like this.
Please note that this issue occurs intermittently and also on SharePoint modern pages too. Any idea?
Jun 29 2022 01:03 AM
It's easy to reproduce in https://web.yammer.com/embed/widget as well.
Refer to any modern SharePoint page in your tenant as the web link. Start a discussion from the embed widget, refresh page and it's gone. Posting comments to Yammer is not an issue, it's displaying the discussions related to the web link that is the problem.
This is the yammer endpoint being used. It returns 200 OK, but payload contains an error message.
https://web.yammer.com/graphql?operationName=FeedAttachableLinkNestedClients
Here's the GraphQL payload (redacted)
{"operationName":"FeedAttachableLinkNestedClients","variables":{"threadCount":4,"replyCount":1,"sortRepliesBy":"CREATED_AT","link":"https://*****.sharepoint.com/sites/*****/SitePages/Petter's-nyhet-med-Yammer.aspx","includeViewerHasBookmarked":true},"extensions":{"yammerTreatments":{"version":"1","treatments":[{"project":"CrossPlatform","key":"SharePointVideoLinkPreviews","value":"true"},{"project":"CrossPlatform","key":"ServerSharePointWebLinks","value":"enabled"},{"project":"ClientForward","key":"GroupsFromGrouper","value":"true"},{"project":"ClientForward","key":"UserGroupsFromGrouper","value":"enabled"}]},"persistedQuery":{"version":1,"sha256Hash":"*******e68535c99d065e9fa977384ef23b484b344"}}}
Here's the response from the API
{"data":{"resolveWebLink":null},"errors":[{"message":"Service timeout.","locations":[{"line":6,"column":11}],"path":["resolveWebLink","webObject","feed","threads"],"correlationId":"ef875c5f-66ad-4015-a8ad-870c7bcefdac","type":"SERVER_ERROR","extensions":{"category":"DOWNSTREAM","timestamp":"2022-06-29T07:57:25.895+00:00"}}]}
The error says it's a timeout issue and I suspect the reason is that the Yammer service is trying to resolve the web link url (SharePoint page) which isn't available anonymously.