I’m trying to implement the CCD Client API, as we’ve decided not to use Addressables due to how our content is managed.
But I’m encountering an odd behavior and I cannot figure out where I’m wrong.
In particular, I am trying to call this endpoint here:
https://.client-api.unity3dusercontent.com/client_api/v1/environments//buckets//release_by_badge/latest/
When using this endpoint in Postman it works just fine. However when using it in Unity, or rather .NET directly via the HttpClient, I receive a 401 Unauthorized response. After some sniffing is done, it turns out that my request is redirected due to a 301 Moved Permanently response. The redirected request doesn’t attach the Authorization header, however. That by itself can be managed but I don’t get why I’m redirected in the first place.
What’s even more confusing is, that the route I’m being redirected to is “/client_api/v1/environments//buckets//release_by_badge/latest/”, aka…the exact same path that I’ve requested in the first place. According to the HttpClient, the final request, that receives the 401 response is at “https://.client-api.unity3dusercontent.com/client_api/v1/environments//buckets//release_by_badge/latest/?Location=%2Fclient_api%2Fv1%2Fenvironments%2F*%2Fbuckets%2F*%2Frelease_by_badge%2Flatest”
If anyone could point out to me what I might be doing wrong, that’d be greatly appreciated. Gotta be some logic error in my thinking or perhaps an absolute minimal typo? I can’t figure it out at all, however.