Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange exception... Are there logs to get you more details? (was expecting a line number or a call stack... something.) #188

Open
jchoover opened this issue Jun 8, 2021 · 2 comments

Comments

@jchoover
Copy link

jchoover commented Jun 8, 2021

NPlusMiner ZPool Edition 8.1.0

Starting Cycle
Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.
+ CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
+ PSComputerName : localhost

Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.
+ CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
+ PSComputerName : localhost

Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.
+ CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
+ PSComputerName : localhost

@johnrando
Copy link

i have this in my logs as well.

Google says that it's an error caused by trying to use the += operator on a PSObject array.

The text "Starting Cycle" is in Core.ps1 at Line 194. The nearest occurrence of += is on Line 315:

$PoolFilter = @()
$Config.PoolName | foreach {$PoolFilter+=($_+=".*")}

@jchoover
Copy link
Author

jchoover commented Jun 9, 2021

But the line before is...

$Variables.StatusText = "Loading pool stats.." $PoolFilter = @() $Config.PoolName | foreach {$PoolFilter+=($_+=".*")} Do { $Tries++ $AllPools = if(Test-Path "Pools"){[System.Collections.ArrayList]::Synchronized(@(Get-SubScriptContent "Pools" -Include $PoolFilter)).Where({$_.Content -ne $Null}) | ForEach {$_.Content | Add-Member @{Name = $_.Name} -PassThru} | Where { $_.SSL -EQ $Config.SSL -and ($Config.PoolName.Count -eq 0 -or ($_.Name -in $Config.PoolName)) -and (!$Config.Algorithm -or ((!($Config.AlgoInclude) -or $_.Algorithm -in $Config.AlgoInclude) -and (!($Config.AlgoExclude) -or $_.Algorithm -notin $Config.AlgoExclude))) } } if ($AllPools.Count -eq 0) { $Variables.StatusText = "Waiting for pool data. retrying in 30 seconds.." Sleep 30 } } While ($AllPools.Count -eq 0 -and $Tries -le 3) $Tries = 0 $Variables.StatusText = "Computing pool stats.."

And we have:

`Starting Cycle
Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.
+ CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
+ PSComputerName : localhost

Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.
+ CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
+ PSComputerName : localhost

Loading currencies rate from 'api.coinbase.com'..
Loading pool stats..
Computing pool stats..
Loading miners..`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants