Skip to content

Invalid credentials? NEED SINGLE QUOTES on password! #26

@wkearney99

Description

@wkearney99

I've updated the ps1 file to use the correct current username (email) and password, and changed the saving location.

Trying to use this today and it failed with error:
Invoke-RestMethod : {"message":"Invalid credentials","lockout_time_remaining":0,"force_password_reset":false,"allow_pin_resend_seconds":90,"code":200}

At E:\Video\blink\Updated031921-BlinkVideoDownloader .ps1:62 char:13
+ $response = Invoke-RestMethod -UseBasicParsing $uri -Method Post -Hea ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

There isn't anything in the code that would prevent using a password with a $ character, is there? For example:
$password = "a6$NTgf5"
I understand that powershell can be tricky about strings sometimes, but this looks pretty harmless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions