Problem:
I am trying to upload images to one drive and frequently getting error
504 Gateway Timeout (Unknown error ).
API used:
PUT
https://graph.microsoft.com/v1.0/users/{userId}/drive/items/{rootFolderId}/{folderPath}/{fileName}:/content
Response:
504 Gateway Timeout
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "9709847a-36d4-42f2-90dd-4c37094caead",
"date": "2018-05-16T12:18:37"
}
}
}
Related
I've got an application with the correct permissions (including CallRecord.Read.All) and I wanted to add webhook subscriptions for the call records. Implementing the validation flow I found that is not working correctly and I'm receiving errors.
Subscription creation seems to work and returns a 201 and receive a subscription id:
curl -i -H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer <redacted>'
-X POST
-d '{ "notificationUrl": "https://<redacted>.ngrok.io/msft/notifications", "expirationDateTime": "2021-02-27T10:00:44.603Z", "resource": "/communications/callRecords", "changeType": "created", "clientState": "a-secret"}'
https://graph.microsoft.com/beta/subscriptions
HTTP/1.1 201 Created
Cache-Control: private
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Location: https://subscriptionstore.windows.net/beta/NA/subscriptions('ef814b3b-<redacted>')
request-id: 0c433a5a-<redacted>
client-request-id: 0c433a5a-<redacted>
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"North Europe","Slice":"SliceC","Ring":"4","ScaleUnit":"005","RoleInstance":"AGSFE_IN_12"}}
OData-Version: 4.0
Strict-Transport-Security: max-age=31536000
Date: Wed, 24 Feb 2021 12:00:56 GMT
Content-Length: 658
{
"#odata.context":"https://graph.microsoft.com/beta/$metadata#subscriptions/$entity",
"id":"ef814b3b-<redacted>",
"resource":"/communications/callRecords",
"applicationId":"9019a047-<redacted>",
"changeType":"created",
"clientState":"a-secret",
"notificationUrl":"https://<redacted>.ngrok.io/msft/notifications",
"notificationQueryOptions":null,
"notificationContentType":null,
"lifecycleNotificationUrl":null,
"expirationDateTime":"2021-02-27T10:00:44.603Z",
"creatorId":"e911e4f9-<redacted>",
"includeResourceData":null,
"latestSupportedTlsVersion":"v1_2",
"encryptionCertificate":null,
"encryptionCertificateId":null
}
However, when trying to GET that subscription, I get an error:
curl -i -H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer <redacted>'
-X GET
https://graph.microsoft.com/beta/subscriptions/ef814b3b-<redacted>
HTTP/1.1 404 Not Found
Cache-Control: private
Content-Type: application/json
request-id: 18761dbf-<redacted>
client-request-id: 18761dbf-<redacted>
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"North Europe","Slice":"SliceC","Ring":"4","ScaleUnit":"001","RoleInstance":"AGSFE_IN_63"}}
Strict-Transport-Security: max-age=31536000
Date: Wed, 24 Feb 2021 12:01:37 GMT
Content-Length: 318
{
"error": {
"code": "ExtensionError",
"message": "There was an error processing a storage extension.",
"innerError": {
"date": "2021-02-24T12:01:38",
"request-id": "18761dbf-<redacted>",
"client-request-id": "18761dbf-<redacted>"
}
}
}
I've read about it and double-checked my permissions again, so tried to see if it's a problem getting that subscription. I tried instead listing all subscriptions, but I get a 500 error:
curl -i -H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer <redacted>'
-X GET
https://graph.microsoft.com/beta/subscriptions/
HTTP/1.1 500 Internal Server Error
Cache-Control: private
Content-Type: application/json
request-id: f52ea0ce-<redacted>
client-request-id: f52ea0ce-<redacted>
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"North Europe","Slice":"SliceC","Ring":"4","ScaleUnit":"002","RoleInstance":"AGSFE_IN_18"}}
Strict-Transport-Security: max-age=31536000
Date: Wed, 24 Feb 2021 12:05:12 GMT
Content-Length: 292
{
"error": {
"code": "UnknownError",
"message": "An unknown error occurred.",
"innerError": {
"date": "2021-02-24T12:05:13",
"request-id": "f52ea0ce-<redacted>",
"client-request-id": "f52ea0ce-<redacted>"
}
}
}
Update:
Tried with the v1.0 endpoints to try to narrow the problem:
POST /v1.0/subscriptions works and creates the resource
GET /v1.0/subscriptions/{id} fails with the same error as the beta endpoint
GET/v1.0/subscriptions does return the full list of subscriptions, including the beta-endpoint created one, and the v1-endpoint created one.
So the subscriptions listing seems to be broken for the beta version, and retrieving individual subscriptions for both...
Other relevant bits:
I've tried with resource values /communications/callRecords and communications/callRecords just in case, but same results.
ngrok https tunnel is working because otherwise the initial POST fails (MS Graph validates the notificationUrl is alive before the subscription creation process).
Permissions are granted application-level (not delegated)
It is an existing and working application just being expanded. It is the first time adding webhook support and change subscriptions, though.
Tested under Microsoft Graph Explorer and trying to GET individual subscriptions have the same errors as via curl.
Any hint about what I might be doing wrong, or if there's an ongoing issue with MS Graph with Subscriptions?
I get the same error with the get callRecord Subscription by id.
I suggest you to use the workaround using the get of all Subscriptions and filter the result of the call using you specific Subscription id.
I'm trying to access O365 reports via the Microsoft Graph API for a GCC High O365 tenant. I'm getting an error "Resource not found for the segment 'reports'". Should this be working or is there an issue with how I'm constructing the request?
The full trace is below,
Request =>
GET https://graph.microsoft.us/v1.0/reports/getOffice365ActiveUserDetail(period='D7') HTTP/1.1
SdkVersion: Graph-dotnet-1.10.0
Authorization: Bearer <JWT TOKEN REMOVED>
Cache-Control: no-store, no-cache
Host: graph.microsoft.us
Response =>
HTTP/1.1 400 Bad Request
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: application/json
request-id: 6d491a27-7343-48d5-b4df-0b47b26c5cb6
client-request-id: 6d491a27-7343-48d5-b4df-0b47b26c5cb6
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"USGov Iowa","Slice":"SliceC","Ring":"4","ScaleUnit":"000","Host":"AGSFE_IN_4","ADSiteName":"USI"}}
Duration: 2.1605
Strict-Transport-Security: max-age=31536000
Date: Tue, 24 Jul 2018 18:03:44 GMT
f1
{
"error": {
"code": "BadRequest",
"message": " .",
"innerError": {
"request-id": "6d491a27-7343-48d5-b4df-0b47b26c5cb6",
"date": "2018-07-24T18:03:44"
}
}
}
0
https://learn.microsoft.com/en-us/graph/deployments
Reports is not yet supported for US Gov Graph according to Microsoft.com
A number of my Google Cloud Dataflow jobs failed yesterday, reporting internal errors that I have not seen before.
Here are two examples:
Job ID 2016-01-31_12_14_47-10166346951693629111 failed with the following error:
Jan 31, 2016, 10:15:25 PM
(bc20d8395f1f7459): Staged package jetty-servlet-9.2.10.v20150310-3EcW9gR7xsTM1TnqPH__rQ.jar at location 'gs://XXXXXXXXX/jetty-servlet-9.2.10.v20150310-3EcW9gR7xsTM1TnqPH__rQ.jar' is inaccessible.
and job ID 2016-01-31_12_22_11-15290010907236071290 failed with this error:
Jan 31, 2016, 11:13:58 PM
(56214ba1d51ca7d6): java.io.IOException: com.google.api.client.googleapis.json.GoogleJsonResponseException: 410 Gone { "code" : 500, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" } ], "message" : "Backend Error" }
at com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel.waitForCompletionAndThrowIfUploadFailed(AbstractGoogleAsyncWriteChannel.java:431)
at com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel.close(AbstractGoogleAsyncWriteChannel.java:289)
at com.google.cloud.dataflow.sdk.runners.worker.TextSink$TextFileWriter.close(TextSink.java:243)
at com.google.cloud.dataflow.sdk.util.common.worker.WriteOperation.finish(WriteOperation.java:100)
at com.google.cloud.dataflow.sdk.util.common.worker.MapTaskExecutor.execute(MapTaskExecutor.java:77)
at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorker.executeWork(DataflowWorker.java:254)
at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorker.doWork(DataflowWorker.java:191)
at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorker.getAndPerformWork(DataflowWorker.java:144)
at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorkerHarness$WorkerThread.doWork(DataflowWorkerHarness.java:180)
at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorkerHarness$WorkerThread.call(DataflowWorkerHarness.java:161)
at com.google.cloud.dataflow.sdk.runners.worker.DataflowWorkerHarness$WorkerThread.call(DataflowWorkerHarness.java:148)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 410 Gone { "code" : 500, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" } ], "message" : "Backend Error" }
at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:432)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
at com.google.cloud.hadoop.util.AbstractGoogleAsyncWriteChannel$UploadOperation.call(AbstractGoogleAsyncWriteChannel.java:357) ... 4 more
Was there any maintenance or other work occurring on the Dataflow service that might have caused these errors?
We've started getting 500 & 503 errors in our Pipelines when running them this morning. Looks like it cannot get the job status once again.
46142 [main] WARN com.google.cloud.dataflow.sdk.runners.DataflowPipelineJob - There were problems getting current job status:
com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error
{
"code" : 500,
"errors" : [ {
"domain" : "global",
"message" : "Internal error encountered.",
"reason" : "backendError"
} ],
"message" : "Internal error encountered.",
"status" : "INTERNAL"
}
1399601 [main] WARN com.google.cloud.dataflow.sdk.runners.DataflowPipelineJob - There were problems getting current job status:
com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 Service Unavailable
{
"code" : 503,
"errors" : [ {
"domain" : "global",
"message" : "The service is currently unavailable.",
"reason" : "backendError"
} ],
"message" : "The service is currently unavailable.",
"status" : "UNAVAILABLE"
}
What's the problem?
Job id: 2015-05-19_17_41_46-7486669477281046678
This was a client-side only issue that was not affecting job submission, due to a transient error. Should not be occurring anymore.
As a contentOwner, I'm trying to run a query using the Google API explorer and in return I get 403 forbidden, here are the steps to reproduce the issue:
login to google.com with collectivedigitalstudios#gmail.com
go to the API explorer and enter the wanted params (https://developers.google.com/apis-explorer/#p/youtubeAnalytics/v1/youtubeAnalytics.reports.query?ids=contentOwner%253D%253DCollective&start-date=2013-08-01&end-date=2013-08-02&metrics=views&filters=channel%253D%253DUCYjk_zY-iYR8YNfJmuzd70A&_h=1&)
authorize the requested scopes:
https://www.googleapis.com/auth/yt-analytics-monetary.readonly
https://www.googleapis.com/auth/yt-analytics.readonly
Execute
here's the complete request/response:
youtubeAnalytics.reports.query executed 14 minutes ago time to execute: 796 ms
You do not have permission to execute this method.
Request
GET https://www.googleapis.com/youtube/analytics/v1/reports?ids=contentOwner%3D%3DCollective&start-date=2013-08-01&end-date=2013-08-02&metrics=views&filters=channel%3D%3DUCYjk_zY-iYR8YNfJmuzd70A&key={YOUR_API_KEY}
Authorization: Bearer ya29.AHES6ZQM1y53hLCD4uBa5BSjACg1Pr8NK4WmUUm_jyuxKYhVqA
X-JavaScript-User-Agent: Google APIs Explorer
Response
403 Forbidden
- Hide headers -
cache-control: private, max-age=0
content-encoding: gzip
content-length: 118
content-type: application/json; charset=UTF-8
date: Thu, 15 Aug 2013 18:21:38 GMT
expires: Thu, 15 Aug 2013 18:21:38 GMT
server: GSE
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Forbidden"
}
],
"code": 403,
"message": "Forbidden"
}
}
I opened a bug and it was closed as "WorksForMe". well, it doesn't.
Any suggestions?
you can try this:
https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3D<YOUR_CHANNEL_ID>&start-date=2013-12-30&end-date=2014-01-05&metrics=views%2Cuniques%2Clikes%2Cdislikes%2Ccomments%2Cshares&dimensions=day&filters=video%3D%3D<YOUR_VIDEO>&sort=-day
And add in the scope: https://www.googleapis.com/auth/youtube