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

Invalid credentials? NEED SINGLE QUOTES on password! #26

Open
wkearney99 opened this issue Dec 1, 2022 · 3 comments
Open

Invalid credentials? NEED SINGLE QUOTES on password! #26

wkearney99 opened this issue Dec 1, 2022 · 3 comments

Comments

@wkearney99
Copy link

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.

@wkearney99
Copy link
Author

wkearney99 commented Dec 1, 2022

WAIT, FIXED IT!

Use single quotes around the string.
$password = 'a6$NTgf5'

Did that and now it's downloading.

(and no, this is not the actual password for the account)

@stevekenney318
Copy link

WAIT, FIXED IT!

Glad you got it working ! Are your thumbnail images downloading ? I'm still not getting mine - #19

-- Steve

@Miko1956
Copy link

Miko1956 commented May 26, 2024

I tried the single quotes and it doesn't work for me either. Still getting Invalid Credentials.
Just trying to download all Blink Mini videos for past two months.
Using PC running Win10 Pro Version 22H2 (OS build 19045.4412
I also have $ in my password but Blink requires a special Character so that shouldn't be an issue.

Also tried on WIN11 Pro Dell laptop, won't even run to credentials needed.

InvalidCred

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

3 participants