Opened 10 years ago

Last modified 10 years ago

#11775 closed defect

API link returns Internal Server Error — at Version 1

Reported by: dejanl Owned by: osimons
Priority: normal Component: XmlRpcPlugin
Severity: major Keywords:
Cc: Olemis Lang Trac Release: 1.0

Description (last modified by Jun Omae)

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log. Apache/2.2.15 (CentOS) Server at ############### Port 443

Here is the log output from debug log:

Traceback (most recent call last):
509   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 497, in _dispatch_request
510     dispatcher.dispatch(req)
511   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 233, in dispatch
512     content_type)
513   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1015, in render_template
514     encoding='utf-8')
515   File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 184, in render
516     return encode(generator, method=method, encoding=encoding, out=out)
517   File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 58, in encode
518     for chunk in iterator:
519   File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 350, in __call__
520     for kind, data, pos in stream:
521   File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 829, in __call__
522     for kind, data, pos in stream:
523   File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 669, in __call__
524     for kind, data, pos in stream:
525   File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 774, in __call__
526     for kind, data, pos in chain(stream, [(None, None, None)]):
527   File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 594, in __call__
528     for ev in stream:
529   File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 289, in _ensure
530     for event in stream:
531   File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 289, in _ensure
532     for event in stream:
533   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1152, in _strip_accesskeys
534     for kind, data, pos in stream:
535   File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 289, in _ensure
536     for event in stream:
537   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1141, in _generate
538     for kind, data, pos in stream:
539   File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 289, in _ensure
540     for event in stream:
541   File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line 618, in _include
542     for event in stream:
543   File "/usr/lib64/python2.6/site-packages/genshi/template/markup.py", line 378, in _match
544     ctxt, start=idx + 1, **vars):
545   File "/usr/lib64/python2.6/site-packages/genshi/template/markup.py", line 378, in _match
546     ctxt, start=idx + 1, **vars):
547   File "/usr/lib64/python2.6/site-packages/genshi/template/markup.py", line 378, in _match
548     ctxt, start=idx + 1, **vars):
549   File "/usr/lib64/python2.6/site-packages/genshi/template/markup.py", line 378, in _match
550     ctxt, start=idx + 1, **vars):
551   File "/usr/lib64/python2.6/site-packages/genshi/template/markup.py", line 326, in _match
552     for event in stream:
553   File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line 578, in _flatten
554     result = _eval_expr(data, ctxt, vars)
555   File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line 289, in _eval_expr
556     retval = expr.evaluate(ctxt)
557   File "/usr/lib64/python2.6/site-packages/genshi/template/eval.py", line 177, in evaluate
558     return eval(self.code, _globals, {'__data__': data})
559   File "/repo/###########/trac/test1/templates/site.html", line 23, in <Expression u'authorinfo(page.author)'>
560     <div class="lastmodified">Last modified by ${authorinfo(page.author)}, ${format_datetime(page.time)} (${dateinfo (page.time)} ago)</div>
 val = getattr(obj, key)
563   File "/usr/lib64/python2.6/site-packages/genshi/template/eval.py", line 278, in _die
564     raise UndefinedError(self._name, self._owner)
565 UndefinedError: "page" not defined
566 2014-05-27 14:40:01,191 Trac[chrome] WARNING: Locale data is missing

I have multiple repositorys. On one plugin is working(the link if I click API is working) on other I'm geting this error

Trac: 1.0.1 Python: 2.6.6

egg file:

drwxr-xr-x.  4 root root  4096 May 27 14:16 TracXMLRPC-1.1.2_r13776-py2.6.egg

Change History (1)

comment:1 Changed 10 years ago by Jun Omae

Description: modified (diff)
Note: See TracTickets for help on using tickets.