When I attempt to play test locally Can't find secret with given key is raised despite the fact I’ve specified the secrets in the secrets menu in game settings.
It’s important to note that in Production the secret is read without any issues.
Good day! Thanks for the report!
Your example “works on my machine” ™. I wonder if you could describe how you Play Test the game? If possible, add a few screenshots of what button you click to start the Play Test.
To me, this happens when I run the game in “Team Test” mode (which means, it’s not running locally, but on Roblox servers).
I wonder if you could create a production secret for this game, named the same way, secretName. If creating such a secret makes your game run fine, it’d mean that some intermediate step enabled team test for your game (and then it uses production secret).
Strangely it works now? I reponed my game 5 days later and the secrets field was no longer filled, filled it with {"secretName": ["YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo=", "*.example.com"]} and now it works.
Glad to hear that everything works!
As for what it could’ve been, I wonder if there were any Windows Updates applied after you added locally defined Secrets, and tried to use them.