question

fire67 avatar image
fire67 asked

ExecuteCloudScript - Missing or invalid X-SecretKey HTTP header

Hi there,

I am currently learning how to use Playfab with Unity and I am facing and issue. I am trying to call a simple cloud script from my client using :

PlayFabClientAPI.ExecuteCloudScript(new ExecuteCloudScriptRequest()
{
	FunctionName = "myFunction",
	FunctionParameter = new { Data= _data}, 
	GeneratePlayStreamEvent = true,

}, OnServerCallSuccess, OnServerCallFailure);

But I am always getting this error :

Error: /Client/ExecuteCloudScript: Missing or invalid X-SecretKey HTTP header

I tried to do the same call using the Try it button on the ExecuteCloudScript documentation page and I am having the same result.

The strange thing is that this call works well in my client and with the Try it button and seems to also need X-Authentication :

UpdateUserData

Any idea why I am facing this issue with CloudScript ?

Thanks a lot.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

fire67 avatar image fire67 commented ·

I am using SDK 2.50.180906

0 Likes 0 ·
Andy avatar image Andy ♦♦ fire67 commented ·

Can you let me know the title id of the title you're working with? You shouldn't be seeing that error when executing a client call, so I'd like to verify what we're seeing on the backend.

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.