there is definitely something wrong with web.input.
this is data received from paypal payment notification and it gives error on
web.input()

can anyone point out how to fix this?


  File "/home/mark/work/common/web/application.py", line 241, in process
    return self.handle()
  File "/home/mark/work/common/web/application.py", line 232, in handle
    return self._delegate(fn, self.fvars, args)
  File "/home/mark/work/common/web/application.py", line 411, in _delegate
    return handle_class(cls)
  File "/home/mark/work/common/web/application.py", line 386, in
handle_class
    return tocall(*args)
  File "/home/mark/work/groupcards/app.py", line 739, in GET
    i = web.input(type='payments', partner='paypal')
  File "/home/mark/work/common/web/webapi.py", line 222, in input
    return storify(out, *requireds, **defaults)
  File "/home/mark/work/common/web/utils.py", line 141, in storify
    value = getvalue(value)
  File "/home/mark/work/common/web/utils.py", line 128, in getvalue
    return unicodify(x.value)
  File "/home/mark/work/common/web/utils.py", line 123, in unicodify
    if _unicode and isinstance(s, str): return safeunicode(s)
  File "/home/mark/work/common/web/utils.py", line 231, in safeunicode
    return obj.decode(encoding)
  File "/usr/lib64/python2.5/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 5:
unexpected end of data" while reading upstream,   request: "POST
/paypal_notify HTTP/1.0", upstream:

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to