New Ticket

TICKET_CREATE privileges are required to perform this operation. You don't have the required permissions



Login Close


Timeout message in gadget container

Ticket #61 Assigned to olemis, last modified 6 years ago

Details

Reporter olemis
Keywords
Type support
Status new
Priority major
Product dataviz
Milestone
Component gviz_igoogle
Version
Cc

Description

Question by Robert Oberholtzer posted to trac users list .

I have been trying to get tracgviz to do a simple table of data on my wiki page. I only get a square and then red text that it has timed out.

My wiki text is:

[[iGoogleGadget(url=http://www.google.com/ig/modules/simple-table.xml,
_table_query_url=[raw-attachment:wiki:transducer/inclinometer:LSOC-0105-90_SN0611344_20090305.json], title=´LSOC-0105-90_SN0611344_20090305', _table_query_refresh_interval=30000, width=600, height=400)]]

all on one line.

The trac log contains this:

Trac[web_ui] INFO: IG: Gadget border store <tracgviz.ig.db.DefaultBordersRepository object at 0xb8b8e90c>
Trac[formatter] ERROR: Macro
iGoogleGadget(url=http://www.google.com/ig/modules/simple-table.xml,
_table_query_url=[raw-attachment:wiki:transducer/inclinometer:LSOC-0105-90_SN0611344_20090305.json], title=´LSOC-0105-90_SN0611344_20090305', _table_query_refresh_interval=30000, width=600, height=400) failed:
Traceback (most recent call last):
 File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/wiki/formatter.py", line 494, in _macro_formatter
   return macro.process(args, in_paragraph=True)
 File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/wiki/formatter.py", line 192, in process
   text = self.processor(text)
 File
"/usr/lib/python2.5/site-packages/Trac-0.12multirepos-py2.5.egg/trac/wiki/formatter.py", line 179, in _macro_processor
   text)
 File "build/bdist.linux-i686/egg/tracgviz/ig/wiki.py", line 200, in
expand_macro
   return self.do_expand_macro(formatter, args)
 File "build/bdist.linux-i686/egg/tracgviz/ig/wiki.py", line 190, in
do_expand_macro
   urlencode(gadget_params), ''])
 File "/usr/lib/python2.5/urllib.py", line 1251, in urlencode
   v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb4' in
position 0: ordinal not in range(128)

I think it must be complaining about my data file. Which is attached. I think it looks ok.

I have tried many alternatives, but I do not get past this. The only things I can see are different in my try is (1) the attachment is on a wiki page with a name like transducer/inclinometer, or (2) my json file has tabs. But the docs imply white space is allowed.

So I am guessing it is too obvious so I do not see the problem.

Help!

Note: See TracTickets for help on using tickets.

olemis

Triggered by iGoogleMacro yes ...

File "/usr/lib/python2.5/urllib.py", line 1251, in urlencode

v = quote_plus(str(v))

UnicodeEncodeError?: 'ascii' codec can't encode character u'\xb4' in
position 0: ordinal not in range(128)

Seems to be related to bizarre Unicode characters in one of the URLs .
Seems to be an issue with urllib module in Py stdlib. If you take a
look at the bottom of the last traceback you'll see that there's where
it is raised

;o)

I think it must be complaining about my data file. Which is attached. I
think it looks ok.

Nope ... it's the URL, please check it out

After first inspection seems to be the backquote in

title=´LSOC-0105-90_SN0611344_20090305'

I have tried many alternatives, but I do not get past this. The only
things I can see are different in my try is (1) the attachment is on a
wiki page with a name like transducer/inclinometer, or (2) my json file
has tabs. But the docs imply white space is allowed.

None of those ...

Besides the following TracLinks? expression should be changed

raw-attachment:wiki:/transducer/inclinometer:LSOC-0105-90_SN0611344_20090305.json

instead you should use

raw-attachment:wiki:transducer/inclinometer:LSOC-0105-90_SN0611344_20090305.json

i.e. remove first slash after wiki

  • Summary changed from Gadget signals timeout to Timeout message in gadget container - by olemis, 10 years ago

olemis

Bind ticket for iGoogle gadgets to gviz_igoogle component

  • Component changed from plugin_trac_gviz to gviz_igoogle - by olemis, 6 years ago