Agora cloud recording not starting properly - amazon-s3

I'm facing some issues in agora cloud recording with amazon S3. Not able to connect s3 properly. Getting 404 error when running postman.
{
"cname": "Stream-On",
"uid": "527841",
"clientRequest": {
"token": "temp_token",
"recordingConfig": {
"maxIdleTime": 120,
"streamTypes": 2,
"audioProfile": 1,
"channelType": 1,
"videoStreamType": 0,
"transcodingConfig": {
"width": 360,
"height": 640,
"fps": 30,
"bitrate": 600,
"mixedVideoLayout": 1,
"maxResolutionUid": "1"
}
},
"storageConfig": {
"vendor": 1,
"region": 8,
"bucket": "live-stream",
"accessKey": "Axxxxxxxxxxxxxxxx",
"secretKey": "Axxxxxxxxxxxxxxxxxxx"
}
}
}
When trying to start my cloud recording I am receiving the resourceId and sid but and I try to stop it shows Failed to find worker and my amazon s3 bucket is also still empty
{
"resourceId": "temp_resource_id",
"code": 404,
"serverResponse": {
"command": "StopCloudRecorder",
"payload": {
"message": "Failed to find worker."
},
"subscribeModeBitmask": 1,
"vid": "471258"
}
}
Can anyone please help to fix this issue?

Generally a 404 response from stop means your original request for start was properly formatted and successfully making the call to start the Agora Cloud Recorder instance but something caused the Agora Cloud Recorder worker to fail to start, so when you call stop there is nothing to stop because nothing actually started.
I wrote this quick-start guide on how to set up Cloud Recording and use the Agora Postman collection to test that your storage bucket is properly configured. I would recommend using it within Postman because it offers a working config that requires you to set your connection credentials into the variables and it should work if your bucket is properly configured.

Related

Tring to fetch a ISOM video stream via API on postman and getting below mentioned error, can anyone suggest what this could be?

{
"statusCode": "ServiceError",
"statusString": "Invalid URI: Invalid port specified.",
"id": null,
"extension":
{
"streamURL": "",
"name": "isomStreamResponseStatus"
}
}
Video feed is working fine on web browser getting 200 ok status.

Linkedin endpoint adAnalyticsV2

I am having an issue in getting the data from LinkedIn API , I have got the permissions and trying postman to test endpoint to get data mention below is my get request , every time the response is an empty elements list with 200 ok. any help in this regard will be highly appreciated. I am sure that their is data its not that there is no activity but cant retrieve via api request.
https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange.start.year=2019&dateRange.start.month=5&dateRange.start.day=28&dateRange.end.year=2021&dateRange.end.month=9&dateRange.end.day=30&timeGranularity=DAILY&pivot=MEMBER_COMPANY&projection=(*,elements*(externalWebsiteConversions,dateRange(*),impressions,landingPageClicks,likes,shares,costInLocalCurrency,pivot,pivotValue~(localizedName)))&fields=externalWebsiteConversions,dateRange,impressions,landingPageClicks,likes,shares,costInLocalCurrency,pivot,pivotValue&accounts[0]=urn:li:sponsoredAccount:123456789
and this is the response every time
{
"paging": {
"count": 10,
"start": 0,
"links": []
},
"elements": []
}

403 while uploading file to Google Drive using react-native-google-drive-api-wrapper

I am trying to upload a file using react-native-google-drive-api-wrapper. I have created a project in the firebase console and able to google login and able to ask permission for accessing google drive. I have followed all the steps mentioned in the below link.
https://github.com/react-native-community/google-signin
Mentioned the below scopes in googleSignin.configure and in Google cloud console for this project. And getting the popup for asking the mentioned scopes while signing in. How can I resolve this error? Even I tried creating a folder but the same 403 for any google drive related requests. Is there any other configuration that I should do in the firebase console or google cloud console?
GoogleSignin.configure({
scopes: ['https://www.googleapis.com/auth/drive',
'https://www.googleapis.com/auth/drive.metadata',
"https://www.googleapis.com/auth/drive.appfolder",],
shouldFetchBasicProfile: true,
webClientId: 'My client id',
});
Error is here below
{"_bodyBlob": {"_data": {"__collector": [Object], "blobId": "b86adcf1-c55a-4b08-8331-26475154af52", "offset": 0, "size": 962}}, "_bodyInit": {"_data": {"__collector": [Object], "blobId": "b86adcf1-c55a-4b08-8331-26475154af52", "offset": 0, "size": 962}}, "headers": {"map": {"alt-svc": "h3-29=\":443\"; ma=2592000,h3-27=\":443\"; ma=2592000,h3-25=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"", "content-length": "962", "content-type": "application/json; charset=UTF-8", "date": "Thu, 02 Jul 2020 09:20:30 GMT", "server": "UploadServer", "vary": "Origin, X-Origin", "x-guploader-uploadid": "AAANsUkDhtWSnzNrl9JlD3Rj4Qz4Q5skrcdPX85Bmzg6i4mU3McC3xY7vhrJ-7OoSCHtDhfRrYnfo4N9RES7c77Faw"}}, "ok": false, "status": 403, "statusText": undefined, "type": "default", "url": "https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart"}
My code is here below. I am able to get true for GDrive.isInitialized() and all my parameters are proper.
GDrive.setAccessToken(token.accessToken);
GDrive.init();
GDrive.isInitialized() ? console.log(true) : console.log(false);
GDrive.files
.createFileMultipart(
this.state.filebase64,
"image/jpg",
{
parents: ['root'], //or any path
name: "newImage.jpg",
},
true,
)
.then(a => {
console.log(a);
}).catch = err => {
console.log('error', err);
};
I am able to upload a file successfully. Error was due to insufficient access as mentioned in the question 403. As the below mentioned steps are not in the documentation of react-native-google-drive-api-wrapper and #react-native-community/google-signin, we should do this to enable the required apis.
Go to Google Cloud Console -> API & Services -> Select Project -> Click on Enable API and Services -> Search Drive -> Open Drive option -> Click on Enable API

Firebase Cloud Messaging Reports - not displaying sent count in Reports

We have set "analytics_label" in the message as stated in the documentation and the message is getting delivered as well. But we do not see any entry in the report. Please check our message string and let us know what might be wrong. Appreciate your help.
REST API being called
https://fcm.googleapis.com/fcm/send
Message being sent
{"topic":"81xxxxx42","android":{"priority":"high"},"priority":"high","fcm_options":{"analytics_label":"nwy81xxxxx42"},"data":{"MID":-1,"frm":"99xxxxx32","MTP":9,"msg":""}}
I'm not certain what library you're using or if you're just POSTing directly to the REST API, but looking at code that I know works I think you just need to make fcm_options and analytics_label camel case.
{
"topic": "81xxxxx42",
"android": {
"priority": "high"
},
"priority": "high",
"fcmOptions": {
"analyticsLabel": "nwy81xxxxx42"
},
"data": {
"MID": -1,
"frm": "99xxxxx32",
"MTP": 9,
"msg": ""
}
}

how to get users data who replies,plusoners and resharers any google plus page?

I have used this api
https://www.googleapis.com/plus/v1/people/page-id/activities/public?key=app-id
and getting all public data of a particular google plus page and in that same json structure i get this
"replies": {
"totalItems": 0,
"selfLink": "googleapis.com/plus/v1/activities/replies-id/comments"
},
"plusoners": {
"totalItems": 1,
"selfLink": "googleapis.com/plus/v1/activities/plusoners-id/people/plusoners"
},
"resharers": {
"totalItems": 0,
"selfLink": "googleapis.com/plus/v1/activities/reshare-id/people/resharers"
}
But when I call one of the above api i get this :
"code": 403 "message": "Daily Limit for Unauthenticated Use Exceeded.
Continued use requires signup."
Make sure you add your APIkey to the end of each of the URLs.
googleapis.com/plus/v1/activities/plusoners-id/people/plusoners?key=app-id