Delta link return 404 error - onedrive

Im try get file changes using this delta link in my account
https://graph.microsoft.com/v1.0/me/drives/ca338b43f405bc50/items/CA338B43F405BC50!646/delta?top=1000&token=aTE09NjM2NDIxNDEzODk3MDc7SUQ9Q0EzMzhCNDNGNDA1QkM1MCE2NDY7TFI9NjM2NDIxNDE2MTMwNTM7RVA9MTY7U0k9NzE7U0c9MTtTTz02O1BJPTM
It works good some time, but some time later this return 404 error:
"error": {
"code": "itemNotFound",
"message": "Item does not exist",
"innerError": {
"request-id": "96d01e55-2f58-45e1-8f78-4f1acae0686a",
"date": "2017-09-28T14:43:03"
}
}
Why it's happend?
Why some time later its return 404 error, but early return 200 ok?
Ho i can get file changes for example, for this link?

Related

"500 Internal error" with the Youtube Content ID API

I'm actually trying to retrieves the policies of my Youtube assets id (following this documentation :
AssetMatchPolicy: get)
There is my HTTP Request : https://i.stack.imgur.com/LL4iU.png
And there is the 500 error i got when i launch this request :
{
"error": {
"code": 500,
"message": "An internal error has occurred.",
"errors": [
{
"message": "An internal error has occurred.",
"domain": "youtubePartner",
"reason": "internalError"
}
]
}
}
I launch it again multiple time at different moments of the day in case it was just due to a temporary server problem, but always the same error...
If anyone can help me understand what can cause this error and how to fix this it would be incredible ! Thanks in advance to everyone !

Delete API - TriggerDeleteAPIPipeline.Run failed

I'm currently having problems when trying to delete an API. Basically I followed all steps detailed here: https://cdas.azure.chevron.com/api-and-integration.wiki/API-Products/Delete-API-Utility.html. But when I hit the submit button at the last step It gives me this error here:
TriggerDeleteAPIPipeline.Run failed: { "error": { "code": 502, "source": "msmanaged-na.azure-apim.net", "clientRequestId": "019d9dd4-976f-4bbd-9e4c-aac428af2577", "message": "BadGateway", "innerError": { "error": { "code": "NoResponse", "message": "The server did not receive a response from an upstream server. Request tracking id '08585506028467688679246934075CU94'." } } } }
Any help on how to report this issue? thanks in advance.
I finally got the issue solved. The problem was that I needed to ask for the Personal access token in "full access scope".

How to move events from one Calendare to another (Different gmail)?

I am using calendar API to move the events from one Calendar to another totaly different gmail account and I am getting error.
404
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}
When I am moving to secondary calendar on the same email no error is coming.
I have already gonethrough the doc which states I must have write permission for both calendar here how can I give permission using API.
Any example will be greatly appereciated.
Thanks,
Amit Singh

Downloading a public shared file from Google Drive (encountering 500 error)

I run this request:
https://www.googleapis.com/drive/v3/files/1TcBDyugpHQSyUCLZcM0XtHOXo0S9Neh6asQUAYh54EM/export?mimeType=application%2Fpdf&key=[apiKey]
on this public file:
https://docs.google.com/document/d/1TcBDyugpHQSyUCLZcM0XtHOXo0S9Neh6asQUAYh54EM/edit
which is clearly exportable as PDF. I run this same query via Google's API explorer: Files: export
With whatever credentials it grabs, it tells me the response is 200 OK with application/pdf data. However, running the query manually in the browser gives me:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "internalError",
"message": "Internal Error"
}
],
"code": 500,
"message": "Internal Error"
}
}
I had a similar problem with a 400 using the normal File.get method:
https://www.googleapis.com/drive/v3/files/1TcBDyugpHQSyUCLZcM0XtHOXo0S9Neh6asQUAYh54EM?alt=media&key=[api key]
returning:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "badRequest",
"message": "Bad Request"
}
],
"code": 400,
"message": "Bad Request"
}
}
Am I just doing something wrong? Any help appreciated!
API key is used for accessing PUBLIC data. Unless your file is set to public your not going get it using an API key. You will need to be authenticated using Oauth2 and use an access token
https://www.googleapis.com/drive/v3/files/1TcBDyugpHQSyUCLZcM0XtHOXo0S9Neh6asQUAYh54EM?alt=media&access_token=[token]
Error documentation:
400: Bad Request
User error. This can mean that a required field or parameter has not been provided, the value supplied is invalid, or the combination of provided fields is invalid.

google plus auth returning error 401

I am using Google plus auth to log in in web application. It is working properly, but for some time its return error 401. Error JSON is following. I view link Error Description but I did not understand what should I do.
{
"error":
{ "errors":
[
{
"domain": "global",
"reason": "authError",
"message": "Invalid Credentials",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Invalid Credentials"
}
}
As the error page indicated - your access token has likely expired. It sounds like you got an access token once, and are continuing to use it.
Access tokens expire after an hour. After that time, you either need to go through the auth flow again, or use the refresh token to get a new one.