Pita/etherpad-lite — Issue #446: Maximum call stack size exceeded when calling API function createGroupIfNotExistsFor
Author: Toumal
Created: 2012-02-12 17:34:39+00:00
State: open

This is on the latest revision, node 0.6.10:

Calling any group related API function results in a "RangeError: Maximum call stack size exceeded":

Ensure that all dependencies are up to date...
Ensure jQuery is downloaded and up to date...
Ensure prefixfree is downloaded and up to date...
Clear minfified cache...
ensure custom css/js files are created...
start...
[2012-02-12 11:21:46.566] [WARN] console - Can't get git version for server header
ENOENT, no such file or directory '/opt/etherpad/etherpad-lite/.git/HEAD'
[2012-02-12 11:21:46.570] [INFO] console - Report bugs at https://github.com/Pita/etherpad-lite/issues
[2012-02-12 11:21:46.726] [INFO] console - Server is listening at 0.0.0.0:9001
[2012-02-12 11:21:46.728] [INFO] console - info - 'socket.io started'
[2012-02-12 11:21:52.449] [INFO] API - REQUEST, createGroupIfNotExistsFor, {"groupMapper":"13","apikey":"rFqIF49IlsRy5frbAi1gzitSA8bKZVPD"}
[2012-02-12 11:21:52.452] [DEBUG] ueberDB - GET - mapper2group:13 - null - from database
[2012-02-12 11:21:52.453] [DEBUG] ueberDB - SET - group:g.bzghzNmJqJKBlRwK - {"pads":{}} - to buffer
[2012-02-12 11:21:52.453] [INFO] API - RESPONSE, createGroupIfNotExistsFor, {"code":0,"message":"ok","data":{"groupID":"g.bzghzNmJqJKBlRwK"}}
[2012-02-12 11:21:52.484] [ERROR] console - [RangeError: Maximum call stack size exceeded]
[2012-02-12 11:21:52.487] [INFO] console - graceful shutdown...
[2012-02-12 11:21:52.487] [INFO] ueberDB - Flushed 1 values

I'm using the php etherpad lite client, doing the following:

$this->etherpadInstance = new EtherpadLiteClient();
try {
$mappedGroup = $this->etherpadInstance->createGroupIfNotExistsFor(SF::uid());
$groupID = $mappedGroup->groupID;
} catch (Exception $e) {}

Etherpad works fine via the web frontend, no issues creating pads and editing them...

Anyone have any clues for me what I'm doing wrong?