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

Update-SteamServer throw errors if server is offline #30

Closed
hjorslev opened this issue Aug 7, 2020 · 0 comments · Fixed by #36
Closed

Update-SteamServer throw errors if server is offline #30

hjorslev opened this issue Aug 7, 2020 · 0 comments · Fixed by #36
Assignees
Labels
Category-Module Pertaining to the module's functionality itself. Issue-Bug 🐛 Something's wrong! Issue-Discussion Let's talk about it!

Comments

@hjorslev
Copy link
Owner

hjorslev commented Aug 7, 2020

Describe "Module Bug or Issue"

Errors are thrown in Update-SteamServer if Get-SteamServerInfo can't reach the server:

Get-SteamServerInfo : System.Exception: Could not reach server 185.15.73.207:27016.
At C:\Program Files\WindowsPowerShell\Modules\SteamPS\3.1.1\Public\Update-SteamServer.ps1:119 char:25
+ ... $ServerStatus = Get-SteamServerInfo -IPAddress $IPAddress -Port $Port
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ConnectionError: (:) [Get-SteamServerInfo], Exception
    + FullyQualifiedErrorId : ServerNotFound,Get-SteamServerInfo

Write-Log : Cannot bind argument to parameter 'Message' because it is an empty string.
At C:\Program Files\WindowsPowerShell\Modules\SteamPS\3.1.1\Public\Update-SteamServer.ps1:120 char:28
+         Write-Log -Message $ServerStatus
+                            ~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Write-Log], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Write-Log

It could also look as if the log file is not created (#29).

Context "The Problem"

Consider how to proceed. Either

  1. update the server and the flow will automatically start the server after it is updated
    or
  2. don't proceed and send message to Discord (if configured)

Context "Expected Behavior"

Context "Additional Information"

Get-Module -Name SteamPS -ListAvailable |
    Select-Object -Property Name, Version

$PSVersionTable | Out-String
@hjorslev hjorslev added Category-Module Pertaining to the module's functionality itself. Issue-Bug 🐛 Something's wrong! Issue-Discussion Let's talk about it! labels Aug 7, 2020
@hjorslev hjorslev self-assigned this Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category-Module Pertaining to the module's functionality itself. Issue-Bug 🐛 Something's wrong! Issue-Discussion Let's talk about it!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant