Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Help with Insight Discovery Import Error "instream parameter is null"

I am working to import a Discovery Tool export into Insight.  I am using the DSC option and importing the zip file that the Discovery tool creates.  When I go to do the import I get the error "Instream parameter is null".  Has anyone run into this issue?  What was the resolution?

 

4 answers

Hey, i've still got the same problem:

18/04/2023 7:21:32 : Exceptions:
18/04/2023 7:21:32 : Failed to get FetchUploadCredentials from Cloud
at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<FetchUploadCred
entials>d__14.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\Disco
Tools\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.HandleNonSuccessAndDebuggerNot
ification(Task task)
at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<UploadFile>d__1
3.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.Collector.Program.TransferFiles()
18/04/2023 7:21:32 : HttpRequestException throw in GetFromJsonAsync
at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<GetFromJsonAsyn
c>d__18`1.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\DiscoTool
s\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.HandleNonSuccessAndDebuggerNot
ification(Task task)
at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<FetchUploadCred
entials>d__14.MoveNext() in C:\build\DISCOVERY-DISCOVERYCLOUDRELEASE-BUILD\Disco
Tools\Cloud\Services\InsightHttpService.cs:line 184
18/04/2023 7:21:32 : Response status code does not indicate success: 400 (Bad Re
quest).

I have tried a couple things, but nothing seems to work:

- There is no password on the zip

- The files to be uploaded are not in a subfolder

- This is the newest version of Jira Cloud Discovery

- Our firewall does not block anything

- My Cloud Token is valid

Can anyone help me with this issue? 

 

Thanks.

I have just upgraded tp Discovery 3.1.4 with the Export option "Cloud", which should do the discovery and upload/sync right away - not having to run an import !

It comes with the same error: 14-12-2022 11:04:41 : Failed to get FetchUploadCredentials from Cloud

- aftes it has said: Token is valid


It stores the zip file and it looks okay.

Any ideas ?

0 votes
Chris Schneider
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 06, 2022

Hi @Scott Chapman ,

I just had the same error. After uploading my *.zip, I could not continue with the setup of the import.

I then checked the content of my zip. Within the zip, there was a folder, which contained all the necessary files. As soon as I removed the folder and moved the files directly into the zip - without subfolder - I could preceed with the setup.

Here is a bit more info.  This is the log from the Discovery tool.

 

1/26/2022 1:46:40 PM : Start transport process.
1/26/2022 1:46:40 PM : Error getting host from export path
1/26/2022 1:46:40 PM : Exceptions:
1/26/2022 1:46:40 PM : Object reference not set to an instance of an object.
at Insight.Discovery.Tools.FormHelper.GetSSHHostFromPath(String path) in C:\Source\discovery\DiscoTools\Forms\FormHelper.cs:line 55
1/26/2022 1:46:42 PM : Token is valid
1/26/2022 1:46:42 PM : Getting authentication to upload file to Media Server...
1/26/2022 1:46:44 PM : Response status code does not indicate success: 400 (Bad Request).
1/26/2022 1:46:44 PM : Failed to get FetchUploadCredentials from Cloud
1/26/2022 1:46:44 PM : Exceptions:
1/26/2022 1:46:44 PM : HttpRequestException throw in GetFromJsonAsync
at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<GetFromJsonAsync>d__18`1.MoveNext() in C:\Source\discovery\DiscoTools\Cloud\Services\InsightHttpService.cs:line 356
--- 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:\Source\discovery\DiscoTools\Cloud\Services\InsightHttpService.cs:line 184
1/26/2022 1:46:44 PM : Response status code does not indicate success: 400 (Bad Request).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at System.Net.Http.Json.HttpClientJsonExtensions.<GetFromJsonAsyncCore>d__9`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:\Source\discovery\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:\Source\discovery\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() in /_/src/Polly/Retry/AsyncRetryEngine.cs:line 69
--- 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:\Source\discovery\DiscoTools\Cloud\Services\InsightHttpService.cs:line 0
1/26/2022 1:46:44 PM : Could not upload file 8DF91_00001_2022-01-26_1346_0616.zip to cloud
1/26/2022 1:46:44 PM : Exceptions:
1/26/2022 1:46:44 PM : Failed to get FetchUploadCredentials from Cloud
at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<FetchUploadCredentials>d__14.MoveNext() in C:\Source\discovery\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:\Source\discovery\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:\Source\discovery\Discovery\Logic\FileTransfer.cs:line 199
1/26/2022 1:46:44 PM : HttpRequestException throw in GetFromJsonAsync
at Insight.Discovery.Tools.Cloud.Services.InsightHttpService.<GetFromJsonAsync>d__18`1.MoveNext() in C:\Source\discovery\DiscoTools\Cloud\Services\InsightHttpService.cs:line 356
--- 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:\Source\discovery\DiscoTools\Cloud\Services\InsightHttpService.cs:line 184
1/26/2022 1:46:44 PM : Response status code does not indicate success: 400 (Bad Request).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at System.Net.Http.Json.HttpClientJsonExtensions.<GetFromJsonAsyncCore>d__9`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:\Source\discovery\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:\Source\discovery\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() in /_/src/Polly/Retry/AsyncRetryEngine.cs:line 69
--- 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:\Source\discovery\DiscoTools\Cloud\Services\InsightHttpService.cs:line 0
1/26/2022 1:46:44 PM : Finished transport process.

Per risolvere l'errore ho creato il file .zip dal Discovery tools senza impostare alcuna password.

I don't have any password for .zip files but still getting the similar error.

Hi @Scott Chapman Did you manage to resolve this, I'm having the same problem?

I am facing the same issue while trying to import the file from the import location I created in Asset Discovery. 

I resolved it by making sure the export did not have a password on it - even if there was and you remove it, it will still not work.

I'm having the same issue and there is no password on the ZIP file.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM Trial
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events