javinizer / Javinizer

(NSFW) Organize your local Japanese Adult Video (JAV) library
MIT License
566 stars 61 forks source link

Get-RunspaceData "An error occurred while sending the request." #300

Open EvilKing3 opened 2 years ago

EvilKing3 commented 2 years ago

Expected Behavior

Sort more than 50-100 at the time.

Current Behavior

It does works for the first 50-100 JAVs after that this error pops out: Get-RunspaceData: C:\Users\X\Documents\PowerShell\Modules\Javinizer\2.5.7\Public\Invoke-JVParallel.ps1:561 Line | 561 | Get-RunspaceData | ~~~~ | Exception calling "EndInvoke" with "1" argument(s): "The running command stopped because the | preference variable "ErrorActionPreference" or common parameter is set to Stop: [GIRO-62] | [Set-JVMovie] Error occurred when creating thumbnail image file [\Z\censored\sorted\GIRO-62 | [Giga] - Armored Heroine Bondage Broken Nifty Domination ANGELA Kayama Yoshisakura (2015)\fanart.jpg]: | Exception calling "DownloadFile" with "2" argument(s): "An error occurred while sending the request.""

Steps to Reproduce (for bugs)

Run with the standard command: Javinizer -Path "SOURCE" -DestinationPath "DESTINATION" Note: I run the powershell on Windows 10, but the path and destination path are on UNRaid connected via network.

Your Environment

jvlflame commented 2 years ago

Is this a consistent issue?

EvilKing3 commented 2 years ago
  1. It's always consistent when I try to add more than 50 JAVs at the time.
  2. Using default options so 3.
  3. JAVLibrary, R18, DMM
EvilKing3 commented 2 years ago

A little update, so apparently the number on queued jobs doesn't matter, any number cause this problem, but it's kinda random, my guess is that the problem is related to where the videos are stored (UNRAID) I couldn't find a fix, but just running the command again and again if it fails, works.

EvilKing3 commented 2 years ago

Also getting a new error that doesn't interrupt the sorting, and honestly I don't know why I'm getting it and what it should affect:

Write-Error: C:\Users\X\Documents\PowerShell\Modules\Javinizer\2.5.7\Public\Invoke-JVParallel.ps1:561 Line | 561 | Get-RunspaceData | ~~~~ | Cannot index into a null array.

jvlflame commented 2 years ago

Also getting a new error that doesn't interrupt the sorting, and honestly I don't know why I'm getting it and what it should affect:

Write-Error: C:\Users\X\Documents\PowerShell\Modules\Javinizer\2.5.7\Public\Invoke-JVParallel.ps1:561 Line | 561 | Get-RunspaceData | ~~~~ | Cannot index into a null array.

I'm aware of this issue, but I'm not quite sure how exactly it's reproduced as of right now. I haven't noticed it breaking any of the current features so I think it's safe to say to ignore it.