I am trying to use the Discovery Tool to sync Assets into JIRA Cloud.
Everything is working fine when I tried to extract the files on the Local server and then manually imported them using Import Configuration.
But, once, I set it auto by setting Export Type to Cloud and pasting my Auth Token, it generates an error.
The log is as below.
/30/2023 6:54:43 AM : Creating HttpClient for GetInfo1/30/2023 6:54:43 AM : Getting Info from Cloud1/30/2023 6:54:44 AM : Deserialisation passed, mapping to ServiceDto now1/30/2023 6:54:44 AM : Response code is Success1/30/2023 6:54:44 AM : Token is valid1/30/2023 6:54:44 AM : Getting authentication to upload file to Media Server...1/30/2023 6:54:44 AM : Creating HttpClient for FetchUploadCredentials1/30/2023 6:54:44 AM : Calling GetFromJsonAsync for route: https://api.atlassian.com/jsm/assets/workspace/0e18cbc7-e8d7-4213-aaf3-480d14fcb6b9/v1/import/b03f4863-a0e8-4aea-bb3a-06c772e61d12?name=306DB_00001_2023-01-30_0654_0067.zip1/30/2023 6:54:44 AM : Retrying request 1/31/30/2023 6:54:44 AM : Exceptions:1/30/2023 6:54:44 AM : Response status code does not indicate success: 400 (Bad Request).1/30/2023 6:54:44 AM : Calling GetFromJsonAsync for route: https://api.atlassian.com/jsm/assets/workspace/0e18cbc7-e8d7-4213-aaf3-480d14fcb6b9/v1/import/b03f4863-a0e8-4aea-bb3a-06c772e61d12?name=306DB_00001_2023-01-30_0654_0067.zip1/30/2023 6:54:44 AM : Retrying request 2/31/30/2023 6:54:44 AM : Exceptions:1/30/2023 6:54:44 AM : Response status code does not indicate success: 400 (Bad Request).1/30/2023 6:54:44 AM : Calling GetFromJsonAsync for route: https://api.atlassian.com/jsm/assets/workspace/0e18cbc7-e8d7-4213-aaf3-480d14fcb6b9/v1/import/b03f4863-a0e8-4aea-bb3a-06c772e61d12?name=306DB_00001_2023-01-30_0654_0067.zip1/30/2023 6:54:44 AM : Retrying request 3/31/30/2023 6:54:44 AM : Exceptions:1/30/2023 6:54:44 AM : Response status code does not indicate success: 400 (Bad Request).1/30/2023 6:54:44 AM : Calling GetFromJsonAsync for route: https://api.atlassian.com/jsm/assets/workspace/0e18cbc7-e8d7-4213-aaf3-480d14fcb6b9/v1/import/b03f4863-a0e8-4aea-bb3a-06c772e61d12?name=306DB_00001_2023-01-30_0654_0067.zip1/30/2023 6:54:44 AM : Response status code does not indicate success: 400 (Bad Request).1/30/2023 6:54:44 AM : Failed to get FetchUploadCredentials from Cloud1/30/2023 6:54:44 AM : Exceptions:
I am having the same issue atm, API token is valid but upload fails.
Did you fix this somehow? I am still; on the JSM Premium trial, this does not build confidence in the solution
...
Building zip file.19.04.2023 19:58:58 : Start package process for: C46BA19.04.2023 19:58:58 : Generating save file name was started19.04.2023 19:58:58 : Generating save file name was successfully19.04.2023 19:58:58 : Adding file C46BA_Hosts_2023-04-19_1943_0098.xml to package.19.04.2023 19:58:58 : Finish building package: C:\...\AtlassianDiscovery\scans\C46BA_2023-04-19_1958_0469.zip19.04.2023 19:58:58 : Deleting file: C:\...\AtlassianDiscovery\scans\C46BA_Hosts_2023-04-19_1943_0098.xml19.04.2023 19:59:00 : Start transport process.19.04.2023 19:59:00 : Creating HttpClient for GetInfo19.04.2023 19:59:00 : Getting Info from Cloud19.04.2023 19:59:00 : Deserialisation passed, mapping to ServiceDto now19.04.2023 19:59:00 : Response code is Success19.04.2023 19:59:00 : Token is valid19.04.2023 19:59:00 : Getting authentication to upload file to Media Server...19.04.2023 19:59:00 : Creating HttpClient for FetchUploadCredentials19.04.2023 19:59:00 : Calling GetFromJsonAsync for route: https://api.atlassian.com/jsm/assets/workspace/fdece3c2-be60-4ad5-bb17-7434ce0720d0/v1/import/5171fc00-4a74-4678-8d4f-7e1d17b7ec7f?name=C46BA_2023-04-19_1958_0469.zip19.04.2023 19:59:00 : Retrying request 1/319.04.2023 19:59:00 : Exceptions:19.04.2023 19:59:00 : Response status code does not indicate success: 400 (Bad Request).19.04.2023 19:59:00 : Calling GetFromJsonAsync for route: https://api.atlassian.com/jsm/assets/workspace/fdece3c2-be60-4ad5-bb17-7434ce0720d0/v1/import/5171fc00-4a74-4678-8d4f-7e1d17b7ec7f?name=C46BA_2023-04-19_1958_0469.zip19.04.2023 19:59:01 : Retrying request 2/319.04.2023 19:59:01 : Exceptions:19.04.2023 19:59:01 : Response status code does not indicate success: 400 (Bad Request).19.04.2023 19:59:01 : Calling GetFromJsonAsync for route: https://api.atlassian.com/jsm/assets/workspace/fdece3c2-be60-4ad5-bb17-7434ce0720d0/v1/import/5171fc00-4a74-4678-8d4f-7e1d17b7ec7f?name=C46BA_2023-04-19_1958_0469.zip19.04.2023 19:59:01 : Retrying request 3/319.04.2023 19:59:01 : Exceptions:19.04.2023 19:59:01 : Response status code does not indicate success: 400 (Bad Request).19.04.2023 19:59:01 : Calling GetFromJsonAsync for route: https://api.atlassian.com/jsm/assets/workspace/fdece3c2-be60-4ad5-bb17-7434ce0720d0/v1/import/5171fc00-4a74-4678-8d4f-7e1d17b7ec7f?name=C46BA_2023-04-19_1958_0469.zip19.04.2023 19:59:01 : Error getting data from JSON:19.04.2023 19:59:01 : Exceptions:19.04.2023 19:59:01 : Response status code does not indicate success: 400 (Bad Request).at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()at System.Net.Http.Json.HttpClientJsonExtensions.<GetFromJsonAsyncCore>d__29`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.InsightHttpClients.HttpClientWrapper.<GetFromJsonAsync>d__3`1.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\InsightHttpClients\HttpClientWrapper.cs:line 0--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<>c__DisplayClass18_0`1.<<GetFromJsonAsync>b__0>d.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 0--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at Polly.Retry.AsyncRetryEngine.<ImplementationAsync>d__0`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Polly.AsyncPolicy.<ExecuteAsync>d__21`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<GetFromJsonAsync>d__18`1.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 019.04.2023 19:59:01 : Failed to get FetchUploadCredentials from Cloud19.04.2023 19:59:01 : Exceptions:19.04.2023 19:59:01 : HttpRequestException throw in GetFromJsonAsyncat Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<GetFromJsonAsync>d__18`1.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 364--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<FetchUploadCredentials>d__14.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 18419.04.2023 19:59:01 : Response status code does not indicate success: 400 (Bad Request).at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()at System.Net.Http.Json.HttpClientJsonExtensions.<GetFromJsonAsyncCore>d__29`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.InsightHttpClients.HttpClientWrapper.<GetFromJsonAsync>d__3`1.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\InsightHttpClients\HttpClientWrapper.cs:line 0--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<>c__DisplayClass18_0`1.<<GetFromJsonAsync>b__0>d.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 0--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at Polly.Retry.AsyncRetryEngine.<ImplementationAsync>d__0`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Polly.AsyncPolicy.<ExecuteAsync>d__21`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<GetFromJsonAsync>d__18`1.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 019.04.2023 19:59:01 : Could not upload file C46BA_2023-04-19_1958_0469.zip to cloud19.04.2023 19:59:01 : Exceptions:19.04.2023 19:59:01 : Failed to get FetchUploadCredentials from Cloudat Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<FetchUploadCredentials>d__14.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 194--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<UploadFile>d__13.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 161--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at Insight.Discovery.Logic.FileTransfer.TransferFile() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\Discovery\Logic\FileTransfer.cs:line 20219.04.2023 19:59:01 : HttpRequestException throw in GetFromJsonAsyncat Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<GetFromJsonAsync>d__18`1.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 364--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<FetchUploadCredentials>d__14.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 18419.04.2023 19:59:01 : Response status code does not indicate success: 400 (Bad Request).at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()at System.Net.Http.Json.HttpClientJsonExtensions.<GetFromJsonAsyncCore>d__29`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.InsightHttpClients.HttpClientWrapper.<GetFromJsonAsync>d__3`1.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\InsightHttpClients\HttpClientWrapper.cs:line 0--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<>c__DisplayClass18_0`1.<<GetFromJsonAsync>b__0>d.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 0--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at Polly.Retry.AsyncRetryEngine.<ImplementationAsync>d__0`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Polly.AsyncPolicy.<ExecuteAsync>d__21`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<GetFromJsonAsync>d__18`1.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTools\Cloud\Services\InsightHttpService.cs:line 019.04.2023 19:59:01 : Finished transport process.
Did you find a solution for this?
I have the same issue. We are still on trial for the premium version of JSM cloud but without a robust discovery, the asset management makes no sense for us
Same here.. not working, bonkers...
We had the same use and we try now to enable the ports mentioned hereAs soon we can test it we will publish results herehere the link where the ports are mentionedhttps://confluence.atlassian.com/assetapps/discovery-system-requirements-1168847928.html
Same here! Any News? Has anybody fixed that?
It looks like you're new here. Sign in or register to get started.