Youtube analytics API Playlists filter returns Unknown error occurred on the server - youtube-analytics-api

When retrieving my playlists statistics using the Youtube Analytics API, quite often the API returns error 500
{
"error": {
"errors": [
{
"domain": "global",
"reason": "internalError",
"message": "Unknown error occurred on the server."
}
],
"code": 500,
"message": "Unknown error occurred on the server."
}
}
The request that I make is authorized, by turning on the Authorize requests using OAuth 2.0 in the api explorer
Here is a link to the API explorer, which is taken from the official documentation
Any ideas? Thank you!

Related

Cant access firebase storage console rules 403

I am having problems with firebase, i just recently started learning it. Im trying to setup my rules for firebase storage but it wont stop loading and i get error message 403 from the console. Full error message in JSON is:
{
"error": {
"code": 403,
"message": "Requests from referer \u003cempty\u003e are blocked.",
"status": "PERMISSION_DENIED",
"details": [
{
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "API_KEY_HTTP_REFERRER_BLOCKED",
"domain": "googleapis.com",
"metadata": {
"service": "firebaserules.googleapis.com",
"consumer": "projects/300182265570"
}
}
]
}
}`
I've tried to google for answers but I'm not any wiser on what to do.
Sidenote, i also get some error message when i try to upload files to my storage from my app about "Bucket not being properply set up".
But I can't even access the rules on firebase.console for storage.
Cheers!

how to upload data to google cloud storage using rest api

I am trying to upload data to google cloud storage using rest api
According to the documentations we can use this api to send data to cloud store
https://www.googleapis.com/upload/storage/v1/b/[Bucket
name]/o?uploadType=media&name=[object name]
and sending auth,content-type and content-length as header
auth can be genereted using service accounts which i generated but still unable to upload the file
i am getting this error
{
"error": {
"errors": [
{
"domain": "global",
"reason": "authError",
"message": "Invalid Credentials",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Invalid Credentials"
}
}
one of the correct way to do it would be
https://www.googleapis.com/upload/storage/v1/b/[bucket_name]/o?key={your_key}&uploadType=media&name=happy3
you can generate key from api screen in google console
other way is to go to outh2.0 playground and send request from there
it will generate header files accordingly

How to share file with room in HipChat via Postman or Jersey client?

Please provide the solution for this (I am new to jersey and postman). I tried with below link but unable to share the file: https://www.hipchat.com/docs/apiv2/method/share_file_with_room
I attached screen shots, which I tried from postman.
Note: I used API access token with send message scope.
I am getting below error as response:
{
"error": {
"code": 400,
"message": "No file was found in the request. See https://www.hipchat.com/docs/apiv2/method/share_file_with_room for an example",
"type": "Bad Request"
}
}

O365 Attachment API got "Unable to cast object of type" error

Any resolution/mitigation on this?
The issue can be reproduced on API explorer (https://graphexplorer2.azurewebsites.net) with following REST API Repro steps:
Logon API Explorer with your tenant, https://graphexplorer2.azurewebsites.net
Get the group conversation attachments with following API In my case:
You will get following error:
Request duration: 6086 ms. CollapseExpandRawJSON Error: 500 - Internal Server Error See Response Headers for details. { "error": { "code": "ErrorInternalServerError", "message": "Unable to cast object of type 'Microsoft.Exchange.Services.OData.Model.AttachmentSchema' to type 'Microsoft.Exchange.Services.OData.Web.IRequestBuilderForEntitySet`2[Microsoft.Exchange.Services.OData.Model.Post,Microsoft.Exchange.Services.OData.Model.Attachment]'.", "innerError": { "request-id": "89efeca6-ba17-478b-aa8e-f3bf6ec32cd0", "date": "2016-01-08T09:56:39" } } }
Thanks,
Raymond
This was a bug in the service. The fix for it is being rolled out and you should no longer see the error.

Facebook Graph API Explorer won't delete a request

I'm trying to delete a request via Graph API Explorer. Request is generated by my mobile application. Of course, I use an access token from this application. And I've got the following error:
{
"error": {
"message": "(#2) Failed to delete any app request",
"type": "OAuthException",
"code": 2
}
}
The request exists, I can GET it.
The issue was that I tried to delete a request that didn't belong to me.