Pita/etherpad-lite — Issue #181: Api Error - Windows Install - SetPassword()
Author: bergziege
Created: 2011-10-15 16:00:10+00:00
State: open

Hi, just tried to build a small script with the PHP Client from tomnomnom and getting the following error on server side when trying to set a password on a pad:

←[31m[2011-10-15 15:52:51.661] [ERROR] console - ←[39mTypeError: Cannot call met
hod 'indexOf' of undefined
at Object.setPassword (C:\etherpad-lite-win\etherpad-lite-win\node\db\API.js
:350:12)
at Object.handle (C:\etherpad-lite-win\etherpad-lite-win\node\handler\APIHan
dler.js:128:19)
at C:\etherpad-lite-win\etherpad-lite-win\node\server.js:314:18
at callbacks (C:\etherpad-lite-win\etherpad-lite-win\node_modules\express\li
b\router\index.js:271:11)
at param (C:\etherpad-lite-win\etherpad-lite-win\node_modules\express\lib\ro
uter\index.js:245:11)
at param (C:\etherpad-lite-win\etherpad-lite-win\node_modules\express\lib\ro
uter\index.js:242:11)
at pass (C:\etherpad-lite-win\etherpad-lite-win\node_modules\express\lib\rou
ter\index.js:252:5)
at Router._dispatch (C:\etherpad-lite-win\etherpad-lite-win\node_modules\exp
ress\lib\router\index.js:279:4)
at Object.handle (C:\etherpad-lite-win\etherpad-lite-win\node_modules\expres
s\lib\router\index.js:45:10)
at next (C:\etherpad-lite-win\etherpad-lite-win\node_modules\express\node_mo
dules\connect\lib\http.js:201:15)
←[32m[2011-10-15 15:52:51.663] [INFO] http - ←[39m500, GET /api/1/setPassword?ap
ikey=xxx&padID=bb_test&password=blubber

The pad allready exists and runs fine.
Using MySql as DB.