python server code problem

Official OpenTok Server-Side libraries

python server code problem

Postby tianlongwang » Sat Apr 07, 2012 7:54 am

1_MX4xMzY1MjM5Mn4xNDAuMTgwLjU5LjZ-MjAxMi0wNC0wNyAxNDo0NDowNi40MTk0MzkrMDA6MDB-MC4yNDI0MzYyMTg4NTJ-
Traceback (most recent call last):
File "sample.py", line 13, in <module>
token = opentok_sdk.generate_token(session.session_id, 'PUBLISHER', None, connectionMetadata)
File "/Users/TianlongWang/OpenTok/Opentok-Python-SDK/OpenTokSDK.py", line 101, in generate_token
raise OpenTokException('%s is not a valid role' % role)
OpenTokSDK.OpenTokException: PUBLISHER is not a valid role
Was this post helpful? (0)
tianlongwang
 
Posts: 20
Joined: Fri Mar 30, 2012 12:20 pm
Thumbs Up: 0

Re: python server code problem

Postby jtsai » Mon Apr 09, 2012 11:24 am

Haha, our sample code appears to be wrong. It should be all lower-case instead of all upper-case, so "publisher"

John
Was this post helpful? (0)
Very helpful resource: Devs Checklist
Examples with OpenTok: Examples
User avatar
jtsai
 
Posts: 2253
Joined: Wed Sep 14, 2011 3:00 pm
Thumbs Up: 164


Return to Supported Server API (PHP, Java, Ruby, Python)



Who is online

Users browsing this forum: No registered users and 1 guest

cron