Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

unicode in Twitter image URL results in UnicodeDecodeError #890

Closed
chadwhitacre opened this issue Apr 25, 2013 · 4 comments
Closed

unicode in Twitter image URL results in UnicodeDecodeError #890

chadwhitacre opened this issue Apr 25, 2013 · 4 comments

Comments

@chadwhitacre
Copy link
Contributor

https://app.getsentry.com/gittip/gittip/group/5325160/

Stacktrace (most recent call last):

  File "aspen/website.py", line 66, in handle_safely
    response = self.handle(request)
  File "aspen/website.py", line 99, in handle
    response = request.resource.respond(request)
  File "aspen/resources/dynamic_resource.py", line 57, in respond
    response = self.get_response(context)
  File "aspen/resources/negotiated_resource.py", line 100, in get_response
    response.body = render(context)
  File "aspen/renderers/__init__.py", line 113, in __call__
    return self.render_content(context)
  File "aspen/renderers/tornado.py", line 14, in render_content
    return self.compiled.generate(**context)
  File "tornado/template.py", line 129, in generate
    return execute()
  File "/app/www/on/twitter/%screen_name/index.html", line 80, in _execute
  File "gittip/models/participant.py", line 236, in get_img_src
    src = src.replace('_normal.', '_bigger.')
@zbynekwinkler
Copy link
Contributor

Hmm. There is no get_img_src in "gittip/models/participant.py", is it now in "gittip/models/_mixin_elsewhere.py"? Anyway, I do not see how that replace call can cause UnicodeDecodeError. Is this still actual? Can we can more info? Some repro steps? The sentry link says 404.

@chadwhitacre
Copy link
Contributor Author

Interesting. Wonder why that's 404?

@chadwhitacre
Copy link
Contributor Author

I bet this is still live. We should work backwards in get_img_src to try to come up with repro steps.

@chadwhitacre
Copy link
Contributor Author

get_img_src got rewritten in #1369. Closing as obsolete.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants