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

400 error but curl gets 200? #1164

Open
KaushikDuddala opened this issue Apr 27, 2024 · 10 comments
Open

400 error but curl gets 200? #1164

KaushikDuddala opened this issue Apr 27, 2024 · 10 comments

Comments

@KaushikDuddala
Copy link

just tried installing the app but i've been met with 400 errors no matter how much research or changing i do.

heres the data for my request that works and gets a 200:

POST /api/user/login HTTP/1.1
Host: auth-prod.api.wyze.com
Keyid: {KEY_ID}
Apikey: {API_KEY}
Content-Type: application/json
Content-Length: 90

{
 "email":"{EMAIL}",
 "password": "md5(md5(md5({PASSWORD)))"
}

heres what i get when i run the program

image

and trying it through the webui just gives me a 400 with invalid username.

heres my config:

image

please help!! any help is appreciated thanks!!

@davlaw
Copy link

davlaw commented Apr 27, 2024

ditto, came looking here too

@KaushikDuddala
Copy link
Author

probably related to #1163

@mathiar86
Copy link

Following. Driving me nuts. I just bought another v3 a month ago (before having HA up and running) and feels like a huge waste to abandon Wyze. I feel like there’s a critical step I’m screwing up here…

@KaushikDuddala
Copy link
Author

should be fine, i think there just needs to be some changes made to the login function. the dev in the issue i previously referenced said it should not break the project. since we can still get successful requests with other parameters that means its still possible just needs changes to the code.

@mathiar86
Copy link

should be fine, i think there just needs to be some changes made to the login function. the dev in the issue i previously referenced said it should not break the project. since we can still get successful requests with other parameters that means its still possible just needs changes to the code.

it’s just odd though because it seemed everyone else has posted that it’s working so makes me think I’m setting it up wrong

@davlaw
Copy link

davlaw commented Apr 28, 2024

Went thru a password change at the same time it was posted here about the api change from wyze.

guess its all gone foobar again

@mrlt8
Copy link
Owner

mrlt8 commented Apr 28, 2024

@KaushikDuddala it looks like your account doesn't have any cameras attached to it?

[API] Fetched [0] from the Wyze API...

@mrlt8
Copy link
Owner

mrlt8 commented Apr 28, 2024

@davlaw @mathiar86 double check your API KEY and ID to make sure they're not swapped.

@mathiar86
Copy link

Mine is working. Someone on the other thread sorted it.
in the configuration on the webUI there’s the “show additional info” at the bottom.
if you tick that it allows you to enter the API key and ID directly into the webui
Save and restart and worked instantly.

@davlaw
Copy link

davlaw commented Apr 29, 2024

finally, but had to reinstall the HA version to get correct fields to show..

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

4 participants