So the bug was in the "..." part, as expected... ;-)
Remove the "[0]" parts and the code works. The error message was correct, you are indexing the request object with 0, but it expects to be indexed with a string.
Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum Sat, 31 Jul 2010 02:45:11 -0700
So the bug was in the "..." part, as expected... ;-)
Remove the "[0]" parts and the code works. The error message was correct, you are indexing the request object with 0, but it expects to be indexed with a string.