AttributeError and unbound method __repr__() for an otherwise working object

Thanks to notes from @tkimnguyen I've implemented Sentry.io on one of our sites.
I'm now seeing this error occur (maybe every two days). When I visit the page I am unable to replicate the error, hoping someone can enlighten me.

Zope.SiteErrorLog:
1483626346.180.238734290045 https://www.mysite.com/mypage
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.BaseRequest, line 554, in traverse
AttributeError: mypage
14:25:46
sentry.errors.serializer:
unbound method repr() must be called with Application instance as first argument (got nothing instead)

1 Like

I have seen this error frequently in the same context of Sentry. This likely an issue with the raven module with caused a bunch of headaches lately. However I did not see this particular error any more after switching to ftw.raven.

-aj

Weird. I haven't been seeing that error at all.

Could be worth digging through the Sentry or Raven github issue tracker

Thanks @zopyx, I'll look into ftw.raven.

I've found this issue FYI

Try doing:
curl -XOPTIONS https://website.com

The OPTIONS request method is causing this issue, something commonly done by web browsers (ie. for CORS)

Logged in https://github.com/getsentry/raven-python/issues/1310