Cannot restore content from Cloud to Local instance

Hi

We are trying to migrate to Umbraco cloud and one of our other developers has created content, templates etc on our new cloud instance which i want to sync back to local o we can contunue local development

I have used gitlab to sync the files , which works, but when we click on the restore button when we first run the site it fails with the error.

“The source environment has thrown a Umbraco.Deploy.Infrastucture.Exceptions.remoteAPIException with message: The remote api did not return application/json content. it may have been caused by an inner with message: (empty)”

The local instance error logs are included below

I have found a few post and solutions in the forum but i cannot find one that works, Has anyone had the problem and found a solution or any ideas how I can debug this further

Thanks in advance

Steve

{"@t":"2023-01-31T12:22:21.1154631Z","@mt":"Work {id} has failed.","@l":"Error","@x":"Umbraco.Deploy.Infrastructure.Exceptions.RemoteApiException: The remote API did not return application/json content.\r\n   at Umbraco.Deploy.Infrastructure.Http.DeployHttpClient.SucceedOrThrow(HttpResponseMessage result, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Http.DeployHttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Http.DeployHttpClient.SendAsync(HttpRequestMessage request, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Environments.RemoteUmbracoEnvironment.BeginSessionAsync(Guid sessionId, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Work.WorkItems.DeployRestoreWorkItemBase.GetSessionOnWithBatchInfo(IUmbracoEnvironment env, Nullable`1 batchIndex, Nullable`1 numberOfBatches)\r\n   at Umbraco.Deploy.Infrastructure.Work.WorkItems.DeployRestoreWorkItemBase.GetSessionOn(IUmbracoEnvironment env)\r\n   at Umbraco.Deploy.Infrastructure.Work.WorkItems.TargetRestoreWorkItem.ExecuteAsyncSub(IWorkContext context, List`1 resume, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Work.WorkItems.TargetRestoreWorkItem.ExecuteAsyncSub(IWorkContext context, List`1 resume, CancellationToken token)\r\n   at Umbraco.Deploy.Infrastructure.Work.WorkItems.TargetRestoreWorkItem.ExecuteAsync(IWorkContext context, CancellationToken token)","id":"a387066c-15bb-4413-bb1a-ad3f44174b14","SourceContext":"Umbraco.Deploy.Infrastructure.Work.WorkTask","ProcessId":14800,"ProcessName":"iisexpress","ThreadId":33,"ApplicationId":"b325aa45bfcf66d608838cce8f645bd63cb6736d","MachineName":"DD-UMBRACO","Log4NetLevel":"ERROR"}


{"@t":"2023-01-31T12:22:21.1784310Z","@mt":"Deployment {id} completed.","id":"a387066c-15bb-4413-bb1a-ad3f44174b14","SourceContext":"Umbraco.Deploy.Infrastructure.Work.WorkEnvironment","ProcessId":14800,"ProcessName":"iisexpress","ThreadId":33,"ApplicationId":"b325aa45bfcf66d608838cce8f645bd63cb6736d","MachineName":"DD-UMBRACO","Log4NetLevel":"INFO "}


{"@t":"2023-01-31T12:22:21.1785680Z","@mt":"Deployment failed.","@l":"Error","SourceContext":"Umbraco.Deploy.Infrastructure.Work.WorkEnvironment","ProcessId":14800,"ProcessName":"iisexpress","ThreadId":33,"ApplicationId":"b325aa45bfcf66d608838cce8f645bd63cb6736d","MachineName":"DD-UMBRACO","Log4NetLevel":"ERROR"}

This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/111074-cannot-restore-content-from-cloud-to-local-instance