Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Open attached provided Unity project “PlayModeErrors.zip” from Google Drive link
2. Enter Play mode
3. Observe the Console window
Actual results: “[Deployment]: System.NullReferenceException”, “[Deployment]: An error occurred during deployment” and “Curl error 3” errors are thrown in the Console window when trying to enter Play mode
Expected results: Play mode is entered without any Deployment-related errors in the Console window
Reproducible with versions: 2.3.0 (6000.0.81f1, 6000.2.23f1, 6000.5.10f1, 6000.6.0b10, 6000.7.0a5)
Tested on (OS): macOS Tahoe 26 (M1)
[Deployment]: An error occurred during deployment. The state of your server files is unknown and playing could lead to unexpected behavior. To continue anyway, disable the “Deploy on Play” setting from the Deployment Window. UnityEngine.Logger:LogError (string,object) Unity.Services.Deployment.Editor.Shared.Logging.Logger:LogError (object) (at ./Library/PackageCache/com.unity.services.deployment@c07c64f9804b/Editor/Shared/Logging/Logger.Gen.cs:17) Unity.Services.Deployment.Editor.PlayMode.PlayModeInterrupt/<InterruptPlayMode>d__15:MoveNext () (at ./Library/PackageCache/com.unity.services.deployment@c07c64f9804b/Editor/PlayMode/PlayModeInterrupt.cs:92) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Unity.Services.Core.Editor.Environments.ValidationResult>:SetResult (Unity.Services.Core.Editor.Environments.ValidationResult) Unity.Services.Core.Editor.Environments.EnvironmentValidator/<ValidateEnvironmentAsync>d__5:MoveNext () (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Editor/Core/Environments/EnvironmentValidator.cs:50) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>:SetResult (bool) Unity.Services.Core.Editor.Environments.EnvironmentValidator/<EnvironmentExistsInProjectAsync>d__6:MoveNext () (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Editor/Core/Environments/EnvironmentValidator.cs:63) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Nullable`1<Unity.Services.Core.Editor.Environments.EnvironmentInfo>>:SetResult (System.Nullable`1<Unity.Services.Core.Editor.Environments.EnvironmentInfo>) Unity.Services.Core.Editor.Environments.EnvironmentsClientFactory/<FetchEnvironment>d__4:MoveNext () (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Editor/Core/Environments/EnvironmentsClientFactory.cs:43) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Unity.Services.Core.Editor.Environments.EnvironmentInfo>:SetResult (Unity.Services.Core.Editor.Environments.EnvironmentInfo) Unity.Services.Core.Editor.Environments.EnvironmentsClient/<GetEnvironment>d__4:MoveNext () (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Editor/Core/Environments/EnvironmentsClient.cs:34) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Unity.Services.Core.Environments.Client.Response`1<Unity.Services.Core.Environments.Client.Models.UnityEnvironmentV1>>:SetResult
[Deployment]: System.NullReferenceException: Object reference not set to an instance of an object at Unity.Services.Deployment.Editor.PlayMode.DeployOnPlayItemRetriever.GetItemsForDeployOnPlay () [0x00041] in ./Library/PackageCache/com.unity.services.deployment@c07c64f9804b/Editor/PlayMode/DeployOnPlayItemRetriever.cs:30 at Unity.Services.Deployment.Editor.PlayMode.DeployOnPlay.DeployAllAsync () [0x00029] in ./Library/PackageCache/com.unity.services.deployment@c07c64f9804b/Editor/PlayMode/DeployOnPlay.cs:57 at Unity.Services.Deployment.Editor.PlayMode.PlayModeInterrupt.InterruptPlayMode () [0x00057] in ./Library/PackageCache/com.unity.services.deployment@c07c64f9804b/Editor/PlayMode/PlayModeInterrupt.cs:87 UnityEngine.Logger:Log (UnityEngine.LogType,string,object) Unity.Services.Deployment.Editor.Shared.Logging.Logger:LogException (System.Exception) (at ./Library/PackageCache/com.unity.services.deployment@c07c64f9804b/Editor/Shared/Logging/Logger.Gen.cs:18) Unity.Services.Deployment.Editor.PlayMode.PlayModeInterrupt/<InterruptPlayMode>d__15:MoveNext () (at ./Library/PackageCache/com.unity.services.deployment@c07c64f9804b/Editor/PlayMode/PlayModeInterrupt.cs:93) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Unity.Services.Core.Editor.Environments.ValidationResult>:SetResult (Unity.Services.Core.Editor.Environments.ValidationResult) Unity.Services.Core.Editor.Environments.EnvironmentValidator/<ValidateEnvironmentAsync>d__5:MoveNext () (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Editor/Core/Environments/EnvironmentValidator.cs:50) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<bool>:SetResult (bool) Unity.Services.Core.Editor.Environments.EnvironmentValidator/<EnvironmentExistsInProjectAsync>d__6:MoveNext () (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Editor/Core/Environments/EnvironmentValidator.cs:63) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Nullable`1<Unity.Services.Core.Editor.Environments.EnvironmentInfo>>:SetResult (System.Nullable`1<Unity.Services.Core.Editor.Environments.EnvironmentInfo>) Unity.Services.Core.Editor.Environments.EnvironmentsClientFactory/<FetchEnvironment>d__4:MoveNext () (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Editor/Core/Environments/EnvironmentsClientFactory.cs:43) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Unity.Services.Core.Editor.Environments.EnvironmentInfo>:SetResult (Unity.Services.Core.Editor.Environments.EnvironmentInfo) Unity.Services.Core.Editor.Environments.EnvironmentsClient/<GetEnvironment>d__4:MoveNext () (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Editor/Core/Environments/EnvironmentsClient.cs:34) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Unity.Services.Core.Environments.Client.Response`1<Unity.Services.Core.Environments.Client.Models.UnityEnvironmentV1>>:SetResult (Unity.Services.Core.Environments.Client.Response`1<Unity.Services.Core.Environments.Client.Models.UnityEnvironmentV1>) Unity.Services.Core.Environments.Client.Apis.Default.DefaultApiClient/<UnityGetEnvironmentAsync>d__15:MoveNext () (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Editor/Core/Environments/Client/Apis/DefaultApi.cs:572) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Unity.Services.Core.Environments.Client.Http.HttpClientResponse>:SetResult (Unity.Services.Core.Environments.Client.Http.HttpClientResponse)
Curl error 3: URL rejected: Error
Issues you vote on will appear here