Pagination problem - Bad request when trying to use the odata.nextlink - microsoft-graph-api

I am trying to get all the chat messages for a specific chat id using this graph method - https://learn.microsoft.com/en-us/graph/api/chat-list-message?view=graph-rest-beta&tabs=http
I am able to get top 50 but when i try to use odata.nextlink i am getting Bad Request error.
Tried through Postman and Tried through TypeScript

I have just tested it and it seems like this issue has been resolved. The MS Graph team confirmed that they were able to reproduce the issue and it's working again now for me at least.
Github ticket: https://github.com/microsoftgraph/microsoft-graph-docs/issues/9729

Related

MS Graph beta API onlineMeetings attendanceReports not working

I'm trying to get the recent changes to the MS Graph beta API to return a collection of meetingAttendanceReports using /attendanceReports (see https://learn.microsoft.com/en-us/graph/api/meetingattendancereport-list?view=graph-rest-beta). I have tried this in Graph Explorer and also in a C# console app in VS, but cannot get it working.
The (Graph Explorer) request is as follows:
https://graph.microsoft.com/beta/users/8b16954b-5dcb-4395-89bb-be879c0f8f77/onlineMeetings/MSo4YjE2OTU0Yi01ZGJiLTQzOTUtODliYi1iZTg3OWMwZjhmNzcqMCoqMTe6bWVldGluZ19Zek0yTnpVNU5ERXRNRFUwT1MwME5UZzRMVGszTXpZdE16QmxNV1JqTmpCak5tRXhAdGhyZWFkLnYy/attendanceReports
The response I am getting is "BadRequest" : "Value cannot be null.Parameter name: String".
The online (Teams) meeting is successfully returned if I remove /attendanceReports resulting in the following request:
https://graph.microsoft.com/beta/users/8b16954b-5dcb-4395-89bb-be879c0f8f77/onlineMeetings/MSo4YjE2OTU0Yi01ZGJiLTQzOTUtODliYi1iZTg3OWMwZjhmNzcqMCoqMTe6bWVldGluZ19Zek0yTnpVNU5ERXRNRFUwT1MwME5UZzRMVGszTXpZdE16QmxNV1JqTmpCak5tRXhAdGhyZWFkLnYy
I have spent days trying to get this working. Although similar error responses can be found by searching online, none of them seem to relate to this particular situation. Any help would be gratefully appreciated.
Created an onlineMeeting using Graph API and got the meeting ID from the response
Then by following this doc tried to get attendanceReports and got proper response.

"MailboxNotHostedInExchangeOnline" when trying to get user photos from MS Graph

Using
`https://graph.microsoft.com/beta/users/${email}/photo/$value`
had been working for me last week but now it throws a 400 error
Error Output
"Mailbox is hosted by an on-premise or non-Exchange server, which is not supported."
As far as I know nothing has changed from our end. Using the v1.0 doesn't seem to make any difference. I think the user photos are stored on an on-premise exchange but are then synced up at AAD. This has been working fine for at least a year like this.
Anybody know if anything has changed in the last few days? Any documented solutions to this?
Exchange Online team was trying to clean up some error codes and such they changed MailboxNotEnabledForRestAPI with HttpStatus code 404 to MailboxNotHostedInExchangeOnline with HttpStauts code 400. This was un-intended and such we have since reverted this change, and are rolling out the fixes to prod with urgency.

Microsoft Graph API for Education: error listing user schools

I'm trying to retrieve the educationShool list of an educationUser from Microsoft Graph per the API reference:
I am getting this error:
Error message: The request URI is not valid. Since the segment
'memberOf' refers to a collection, this must be the last segment in
the request URI or it must be followed by an function or action that
can be bound to it otherwise all intermediate segments must refer to a
single resource.
I have reproduced this issue in the Graph Explorer, if I try to send this request, I get the same error:
https://graph.microsoft.com/v1.0/education/me/schools
If I try to list the Classes (I think it should be a very similar scenario), it works ok:
https://graph.microsoft.com/v1.0/education/me/classes
Am I doing something wrong, or is this a bug in the API?
I was able to reproduce this and it looks like there may be a bug here. While that gets investigated, I can confirm that it works properly in the /beta release:
https://graph.microsoft.com/v1.0/education/me/schools
I'd suggest using /beta for this particular call if possible.
Update: This issue has been resolved and education/{users}/schools should now be working in both v1.0 and Beta versions.

Is List Joined Teams API Working

Working with Teams preview API and attempting to get all of the Teams of which the current person is a member. I don't get any authorization errors, but instead get a 400 - Bad Request as a response. Bad Request is a REALLY strange error for a GET request with no parameters, i.e. we're just asking for https://graph.microsoft.com/beta/me/joinedTeams using the access token we just got from Azure AD.
Is this just not working right now? Or is there something maybe missing from the documentation? Or something else?
Update 2/27/18: this has been fixed.
It's an active bug we are tracking.

google oauth 404 for page https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en_US

I have been using Google API Client (gapi.auth.authorize) to handle oAuth and it has been working for months until last night. It started with an error saying something like "_.Uu is not a function" last night, and this morning the api URL becomes inaccessible completely (returning 404):
https://apis.google.com//scs/apps-static//js/k=oz.gapi.en_US.wLUinxMaFvQ.O/m=/exm=client/rt=j/sv=1/d=1/ed=1/am=IQ/rs=AItRSTNDbsyHH46eCqa0_JZmh883Ddz23Q/cb=gapi.loaded_1
Is anyone seeing the same problem? Not sure if Google is making any changes.
I had the same problem.
You need to update the client library and then it will work fine.
The same issue is being discussed on another question. It appears that Google knows about it and is working on it.

Resources