Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Maximum recursion depth exceeded with JSON on web2py #74

Open
pyjsorg opened this Issue · 0 comments

1 participant

@pyjsorg
Owner

Before reporting a problem, please UPDATE TO LATEST SVN.
As this is a community-driven project, the developers only
have time available to fix problems reported in the LATEST
code. You are welcome to report problems in any other
version, but until you have upgraded to latest svn and provided
a test report against that, you will be reliant on people
OTHER than the core developers for bug-fixes. which could
happen, so feel free to ignore the above should you so choose.

What steps will reproduce the problem?
1.Import attached w2p appliance in latest web2py
2.Try typing in debug page AutoCompleteTextBox

What is the expected output? What do you see instead?
Expected output is the population of the AutoCompleteTextBox with list taken from the JSON responce. Instead i get the following errors :
[10/06/2011 10:22:34 AM] JavaScript - http://localhost:8000/debug/default/debug
Event thread: keypress
Uncaught exception: RangeError: Maximum recursion depth exceeded
Error thrown at line 189, column 24 in <anonymous function: object>(x) in http://localhost:8000/debug/static/output/debug.opera.cache.html:
f = s[typeof v];
called from line 189, column 24 in <anonymous function: object>(x) in http://localhost:8000/debug/static/output/debug.opera.cache.html:
f = s[typeof v];
called from line 189, column 24 in <anonymous function: object>(x) in http://localhost:8000/debug/static/output/debug.opera.cache.html:
f = s[typeof v];
called from line 189, column 24 in <anonymous function: object>(x) in http://localhost:8000/debug/static/output/debug.opera.cache.html:
f = s[typeof v];
called from line 189, column 24 in <anonymous function: object>(x) in http://localhost:8000/debug/static/output/debug.opera.cache.html:
f = s[typeof v];
called from line 189, column 24 in <anonymous function: object>(x) in http://localhost:8000/debug/static/output/debug.opera.cache.html:
f = s[typeof v];
called from line 189, column 24 in <anonymous function: object>(x) in http://localhost:8000/debug/static/output/debug.opera.cache.html:
f = s[typeof v];
called from line 189, column 24 in <anonymous function: object>(x) in http://localhost:8000/debug/static/output/debug.opera.cache.html:
f = s[typeof v];
called from line 189, column 24 in <anonymous function: object>(x) in http://localhost:8000/debug/static/output/debug.opera.cache.html:
f = s[typeof v];
called from line 189, column 24 in <anonymous function: object>(x) in http://localhost:8000/debug/static/output/debug.opera.cache.html:
f = s[typeof v];

What version of Pyjamas are you using? which svn revision number?
On what operating system?
OS = Ubuntu Linux 10.4.3
Pyjamas version tried, 0.6, 0.7 and 0.8alpha1

If using PyJS, have you attached a javascript stack trace,
from IE's Script Debugger or from Firefox Venkman / Firebug?
Have you attached a stack trace from using "-d" compiler option?
Javascript stack trace is from opera 11.51. the code doesn't work in firefox and chrome also.

If using PyJD, have you attached a python stack trace?

If using PyJS, what compiler options did you use?

Please provide any additional information below.
The service is fully functional since the following simple code works like a charm,

import jsonrpclib
server = jsonrpclib.Server('http://localhost:8000/debug/default/call/jsonrpc')
for item in server.getDescription('canon'):
print item

that code returns as it should

CARTR CANON FAX T PCD320-340
TONER CANON COPIER C-EXV 1 BK
TONER CANON COPIER C-EXV 12 IR 3570-4570
TONER CANON COPIER NPGP215-225 BK
TONER CANON COPIER NPGP285-335-405 BK 2
TONER CANON FAX FX3
.
.
.
the jsonrpc library used is from http://code.google.com/p/jsonrpclib/

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=649 (October 06, 2011 07:40:27)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.