I have a CCD pipeline set up using Addressables and they seem to load perfectly fine from Unity’s CCD buckets but when I build for Android and test on my mobile device, it leads to a 400 error.
Here is the error log shown by LogCat:
2025-01-11 07:19:29.030 11779 11795 Debug Unity UnloadTime: 9.590462 ms
2025-01-11 07:19:29.480 11779 11795 Info Unity LoadingBarPanel (LoadingBar)
2025-01-11 07:19:29.480 11779 11795 Info Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:37)
2025-01-11 07:19:29.480 11779 11795 Info Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
2025-01-11 07:19:29.480 11779 11795 Info Unity UnityEngine.Logger:Log (UnityEngine.LogType,object)
2025-01-11 07:19:29.480 11779 11795 Info Unity UnityEngine.Debug:Log (object)
2025-01-11 07:19:29.480 11779 11795 Info Unity LoadingBar:Awake () (at D:/Unity Projects/stuck-in-machine-hell/Assets/General/LevelSequencer/LoadingBar.cs:22)
2025-01-11 07:19:29.480 11779 11795 Info Unity
2025-01-11 07:19:29.557 11779 11795 Debug Unity Sensor : Accelerometer ( 1) ; 0.001200 / 0.00s ; MXC4005_Accelerometer / acc_mxc4005x
2025-01-11 07:19:29.557 11779 11795 Debug Unity Choreographer available: Enabling VSYNC timing
2025-01-11 07:19:29.580 11779 11779 Info BLASTBufferQueue_Java update, w= 720 h= 1600 mName = ViewRootImpl@eaa1e70[UnityPlayerActivity] mNativeObject= 0xeba9dc00 sc.mNativeObject= 0xeb26e1e0 format= -3 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2977 android.view.ViewRootImpl.relayoutWindow:10007 android.view.ViewRootImpl.performTraversals:4065 android.view.ViewRootImpl.doTraversal:3248 android.view.ViewRootImpl$TraversalRunnable.run:11206 android.view.Choreographer$CallbackRecord.run:1650
2025-01-11 07:19:29.580 11779 11779 Info ViewRootImpl@eaa1e70[UnityPlayerActivity] Relayout returned: old=(0,0,720,1600) new=(0,0,720,1600) req=(720,1600)0 dur=11 res=0x400 s={true 0xe88ad000} ch=false seqId=0
2025-01-11 07:19:29.581 11779 11779 Info ViewRootImpl@eaa1e70[UnityPlayerActivity] updateBoundsLayer: t=android.view.SurfaceControl$Transaction@eab3fce sc=Surface(name=Bounds for - com.DefaultCompany.Optimized/com.unity3d.player.UnityPlayerActivity@0)/@0x3af1eef frame=8
2025-01-11 07:19:29.614 11779 11779 Info gralloc4 @set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
2025-01-11 07:19:32.726 11779 11795 Info Unity Download Size Currently: 9.598705
2025-01-11 07:19:32.726 11779 11795 Info Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:37)
2025-01-11 07:19:32.726 11779 11795 Info Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
2025-01-11 07:19:32.726 11779 11795 Info Unity UnityEngine.Logger:Log (UnityEngine.LogType,object)
2025-01-11 07:19:32.726 11779 11795 Info Unity UnityEngine.Debug:Log (object)
2025-01-11 07:19:32.726 11779 11795 Info Unity LevelManager/<CheckDownloadStatus>d__30:MoveNext () (at D:/Unity Projects/stuck-in-machine-hell/Assets/General/GameProgression/LevelManager.cs:281)
2025-01-11 07:19:32.726 11779 11795 Info Unity UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr) (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/Coroutines.cs:17)
2025-01-11 07:19:32.726 11779 11795 Info Unity
2025-01-11 07:19:32.869 11779 11795 Info Unity Web request failed to load from cache. The cached AssetBundle will be cleared from the cache and re-downloaded. Retrying...
2025-01-11 07:19:32.869 11779 11795 Info Unity ProtocolError : HTTP/1.1 400 Bad Request
2025-01-11 07:19:32.869 11779 11795 Info Unity ResponseCode : 400, Method : GET
2025-01-11 07:19:32.869 11779 11795 Info Unity url : https://6cdc3080-ca15-4f01-994a-2fc1eab3f93a.client-api.unity3dusercontent.com/client_api/v1/environments//buckets//release_by_badge//entry_by_path/content/?path=/mainmenu_scenes_all_bb8bb5e8076ccab8a553ed6995eb090a.bundle
2025-01-11 07:19:32.869 11779 11795 Info Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:37)
2025-01-11 07:19:32.869 11779 11795 Info Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
2025-01-11 07:19:32.869 11779 11795 Info Unity UnityEngine.Logger:LogFormat (UnityEngine.LogType,string,object[])
2025-01-11 07:19:32.869 11779 11795 Info Unity UnityEngine.Debug:LogFormat (string,object[])
2025-01-11 07:19:32.869 11779 11795 Info Unity UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource:WebRequestOperationCompleted (UnityEngine.AsyncOperation) (at ./Library/PackageCache/com.unity.addressables@1.21.21/Runtime/ResourceManager/ResourceProviders/AssetBundleProvider.cs:80
2025-01-11 07:19:32.989 11779 11795 Error Unity RemoteProviderException : Unable to load asset bundle from : https://6cdc3080-ca15-4f01-994a-2fc1eab3f93a.client-api.unity3dusercontent.com/client_api/v1/environments//buckets//release_by_badge//entry_by_path/content/?path=/mainmenu_scenes_all_bb8bb5e8076ccab8a553ed6995eb090a.bundle
2025-01-11 07:19:32.989 11779 11795 Error Unity UnityWebRequest result : ProtocolError : HTTP/1.1 400 Bad Request
2025-01-11 07:19:32.989 11779 11795 Error Unity ResponseCode : 400, Method : GET
2025-01-11 07:19:32.989 11779 11795 Error Unity url : https://6cdc3080-ca15-4f01-994a-2fc1eab3f93a.client-api.unity3dusercontent.com/client_api/v1/environments//buckets//release_by_badge//entry_by_path/content/?path=/mainmenu_scenes_all_bb8bb5e8076ccab8a553ed6995eb090a.bundle
2025-01-11 07:19:32.989 11779 11795 Error Unity
2025-01-11 07:19:32.989 11779 11795 Error Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:37)
2025-01-11 07:19:32.989 11779 11795 Error Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
2025-01-11 07:19:32.989 11779 11795 Error Unity UnityEngine.Logger:Log (UnityEngine.LogType,object)
2025-01-11 07:19:32.989 11779 11795 Error Unity UnityEngine.Debug:LogError (object)
2025-01-11 07:19:32.989 11779 11795 Error Unity UnityEngine.AddressableAssets.AddressablesImpl:LogException (UnityEngine.ResourceManagement
2025-01-11 07:19:32.999 11779 11795 Error Unity OperationException : GroupOperation failed because one of its dependencies failed
2025-01-11 07:19:32.999 11779 11795 Error Unity RemoteProviderException : Unable to load asset bundle from : https://6cdc3080-ca15-4f01-994a-2fc1eab3f93a.client-api.unity3dusercontent.com/client_api/v1/environments//buckets//release_by_badge//entry_by_path/content/?path=/mainmenu_scenes_all_bb8bb5e8076ccab8a553ed6995eb090a.bundle
2025-01-11 07:19:32.999 11779 11795 Error Unity UnityWebRequest result : ProtocolError : HTTP/1.1 400 Bad Request
2025-01-11 07:19:32.999 11779 11795 Error Unity ResponseCode : 400, Method : GET
2025-01-11 07:19:32.999 11779 11795 Error Unity url : https://6cdc3080-ca15-4f01-994a-2fc1eab3f93a.client-api.unity3dusercontent.com/client_api/v1/environments//buckets//release_by_badge//entry_by_path/content/?path=/mainmenu_scenes_all_bb8bb5e8076ccab8a553ed6995eb090a.bundle
2025-01-11 07:19:32.999 11779 11795 Error Unity
2025-01-11 07:19:32.999 11779 11795 Error Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:37)
2025-01-11 07:19:32.999 11779 11795 Error Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
2025-01-11 07:19:32.999 11779 11795 Error Unity UnityEngine.Logger:Log (UnityEngine.LogType,object)
2025-01-11 07:19:32.999 11779 11795 Error Unity UnityEngine.Debug:LogError (object)
2025-01-11 07:19:32.999 11779 11795 Error Unity UnityEngi
2025-01-11 07:19:33.039 11779 11795 Error Unity OperationException : GroupOperation failed because one of its dependencies failed
2025-01-11 07:19:33.039 11779 11795 Error Unity RemoteProviderException : Unable to load asset bundle from : https://6cdc3080-ca15-4f01-994a-2fc1eab3f93a.client-api.unity3dusercontent.com/client_api/v1/environments//buckets//release_by_badge//entry_by_path/content/?path=/mainmenu_scenes_all_bb8bb5e8076ccab8a553ed6995eb090a.bundle
2025-01-11 07:19:33.039 11779 11795 Error Unity UnityWebRequest result : ProtocolError : HTTP/1.1 400 Bad Request
2025-01-11 07:19:33.039 11779 11795 Error Unity ResponseCode : 400, Method : GET
2025-01-11 07:19:33.039 11779 11795 Error Unity url : https://6cdc3080-ca15-4f01-994a-2fc1eab3f93a.client-api.unity3dusercontent.com/client_api/v1/environments//buckets//release_by_badge//entry_by_path/content/?path=/mainmenu_scenes_all_bb8bb5e8076ccab8a553ed6995eb090a.bundle
2025-01-11 07:19:33.039 11779 11795 Error Unity
2025-01-11 07:19:33.039 11779 11795 Error Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:37)
2025-01-11 07:19:33.039 11779 11795 Error Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
2025-01-11 07:19:33.039 11779 11795 Error Unity UnityEngine.Logger:Log (UnityEngine.LogType,object)
2025-01-11 07:19:33.039 11779 11795 Error Unity UnityEngine.Debug:LogError (object)
2025-01-11 07:19:33.039 11779 11795 Error Unity UnityEngi
2025-01-11 07:19:33.105 11779 11795 Error Unity ArgumentException: SceneManager.SetActiveScene failed; invalid scene
2025-01-11 07:19:33.105 11779 11795 Error Unity at (wrapper managed-to-native) UnityEngine.SceneManagement.SceneManager.SetActiveScene_Injected(UnityEngine.SceneManagement.Scene&)
2025-01-11 07:19:33.105 11779 11795 Error Unity at UnityEngine.SceneManagement.SceneManager.SetActiveScene (UnityEngine.SceneManagement.Scene scene) [0x00000] in <956af42e0812441bb857f05dbd77e3ea>:0
2025-01-11 07:19:33.105 11779 11795 Error Unity at LevelManager+<GoToMainMenuCoroutine>d__21.MoveNext () [0x00100] in D:\Unity Projects\stuck-in-machine-hell\Assets\General\GameProgression\LevelManager.cs:99
2025-01-11 07:19:33.105 11779 11795 Error Unity at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00020] in /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/Coroutines.cs:17
Another thing I notice is that the error log shows a URL to the bundle itself and when I paste it in the browser it gives the value of null.
How do I go about fixing this issue and making Addressables work for Android builds?