Unity Analytics Raw Data Export not working?

Is there a known issue with Raw Data Export failing?

Yes, the service is currently down, apologies on the inconvenience. We are working to resolve it. It appears that the REST API is still functional however https://docs.unity3d.com/Manual/UnityAnalyticsRawDataExport.html

It’s working again now. Thank you.

1 Like

Is there any way to know when this service is down? I’ve had a lot of reports fail recently.

Currently there is no place to know the status of the service, we will try to make it more stable.

Create Raw Data Export Not Working…

Followed the docs : https://docs.unity3d.com/Manual/UnityAnalyticsRawDataExport.html

http method : post
endpoint : api/v2/projects/{project_id}/rawdataexports

I only get export list.

Help me

That is expected. You need to follow the API path to download the reports for a specific day. You use the IDs returned from each step in the next request. Also please provide the exact curl syntax you are using, change a few characters for security.

Airflow, python package code:

hook = HttpHook(http_conn_id=ex) “https://analytics.cloud.unity3d.com”, method=“POST”)

auth_key = base64.b64encode(
f"{project_id}:{api_key}".encode()
).decode()

response = hook.run(
endpoint=f"api/v2/projects/{project_id}/rawdataexports",
data=json.dumps(
{
“startDate”: ex) “2021-06-08”,
“endDate”: ex) “2021-06-09”,
“format”: “json”,
“dataset”: “custom”,
}
),
headers={
“Content-Type”: “application/json”,
“Authorization”: f"Basic {auth_key}",
}
)

is not working

as curl:

curl --user project_id:api_key --request POST --header “Content-Type: application/json” --data ‘{ “startDate”: “2016-05-15” , “endDate”: “2016-05-16”, “format”: “json”, “dataset”: “custom” }’ https://analytics.cloud.unity3d.com/api/v2/projects/project_id/rawdataexports

result:

{
“id”: “blind”,
“upid”: “blind”,
“status”: “running”,
“createdAt”: “2021-06-14T01:27:04.402+0000”,
“duration”: 0,
“request”: {
“startDate”: “2016-05-15T00:00:00.000+0000”,
“endDate”: “2016-05-16T00:00:00.000+0000”,
“format”: “json”,
“dataset”: “custom”
}
}

is working

Great, I’m glad you got it working!