mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.58k stars 159 forks source link

400 error but curl gets 200? #1164

Open KaushikDuddala opened 4 months ago

KaushikDuddala commented 4 months ago

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 commented 4 months ago

ditto, came looking here too

KaushikDuddala commented 4 months ago

probably related to #1163

mathiar86 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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

[API] Fetched [0] from the Wyze API...
mrlt8 commented 4 months ago

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

mathiar86 commented 4 months ago

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 commented 4 months ago

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