Hi, I’m having some trouble trying to use the Raw Data Export feature.
I’m not really good with curl and html requests, so I’m probably doing something wrong…
I’m using cURL for windows and I’ve written this command in the cmd line:
The url you listed as part of your script - it should be Unity Cloud
Using the api-key instead of the project id could cause this 500 error, can you check whether you still have the issue when you use the project id in the url?
Thanks for the reply,
I’m sorry but I did a mistake while writing the post, I was using the UNITY_PROJECT_ID already.
I’m editing the post to avoid confusion.
We’re working on getting a more detailed error message instead of just a 500 error.
Regarding your curl request, can you try removing the “-g” and also the new lines.
So it should look like this:
Our logs are showing a problem with the JSON data that you are sending. For some reason the received JSON blob does not have the expected double quotes around the keys and values.
I tried copy pasting the command you pasted in your previous reply (replacing just the credentials) and it worked fine. However, if I strip out the double quotes from the JSON keys and values then I will get the same 500 error. Is it possible something on your end is stripping out the double quotes?
Here’s example of the correct JSON with double quotes around the keys and values:
I’ve been able to find the issue with the Json Data: in Windows the single quotes are not allowed, and must be substituted with double quotes. Also the inner double quotes have to be escaped.