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

seems like getting error on status when connecting to Camsoda #4

Open
tsauce opened this issue Dec 20, 2017 · 4 comments
Open

seems like getting error on status when connecting to Camsoda #4

tsauce opened this issue Dec 20, 2017 · 4 comments

Comments

@tsauce
Copy link

tsauce commented Dec 20, 2017

Started happening about 2 weeks ago ? Just didn't have time post earlier.
Any suggestions?

side$ CamsodaRecorder (master) $ python3.5 CamsodaRecorder.py
Traceback (most recent call last):
File "CamsodaRecorder.py", line 80, in
getOnlineModels()
File "CamsodaRecorder.py", line 29, in getOnlineModels
if line['username'].lower() not in recording and line['status'] != 'connected':
KeyError: 'status'

@ghost
Copy link

ghost commented Dec 22, 2017

I don't know but I am getting the same error.
Glad it is not just my comptuer

@longsack
Copy link

Same error here..... I think Beaston02 is busy, i'm looking at seeing if I can find a programmer to fix this issue. I looked at it but I have no idea what i'm looking at. will post an update if I get a solution.

@nickartis
Copy link

i got the error to leave and it detects the model at the start of the countdown, but it doesnt anything nor does it detect the model after 1 second. This is the change i made, "if line['username'].lower() not in recording and line.get('status') != 'connected':".

@asap1en
Copy link

asap1en commented Jan 18, 2018

So as far as i can tell there are a couple errors, one is that they seem to leave off status: connected if its connected, and the other is that the stream url isnt being created properly.
I changed line 30 to ;
if line['username'].lower() not in recording and line.get('status') != 'connected':
as nickartis suggested
and line 48 to
elif modelData['status'] == 'online' or not hasattr(modelData,'status'):
rather than checking if it has status; connected it checks if status doesn't exist.

so line 41 doesn't seem to being retaining the online models name but I think its related to the next error.

and then 42- 43 is the big error

 videoapi = requests.get(
                "https://www.camsoda.com/api/v1/video/vtoken/{model}?username=guest_{num}".format(model=modelData['username'], num=num), headers=headers)

is returning "response[200]" instead of what i think should be server urls. Even figureing out this much is stretching my debugging skills (actually learned out to sort of use liclipse for it). If someone can figure out the requests line, I think everything would work.

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