Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError, expected string or buffer #2

Closed
hellysmile opened this issue Jan 27, 2014 · 5 comments
Closed

TypeError, expected string or buffer #2

hellysmile opened this issue Jan 27, 2014 · 5 comments

Comments

@hellysmile
Copy link
Contributor

  File "django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "newrelic/hooks/framework_django.py", line 494, in wrapper
    return wrapped(*args, **kwargs)
  File "django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "newrelic/hooks/framework_django.py", line 831, in wrapper
    return wrapped(*args, **kwargs)
  File "django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)
  File "django/views/generic/edit.py", line 199, in post
    return super(BaseCreateView, self).post(request, *args, **kwargs)
  File "django/views/generic/edit.py", line 164, in post
    if form.is_valid():
  File "django/forms/forms.py", line 126, in is_valid
    return self.is_bound and not bool(self.errors)
  File "django/forms/forms.py", line 117, in _get_errors
    self.full_clean()
  File "django/forms/forms.py", line 272, in full_clean
    self._clean_fields()
  File "django/forms/forms.py", line 287, in _clean_fields
    value = field.clean(value)
  File "django/forms/fields.py", line 470, in clean
    return super(EmailField, self).clean(value)
  File "django/forms/fields.py", line 156, in clean
    self.run_validators(value)
  File "django/forms/fields.py", line 135, in run_validators
    v(value)
  File "django_flanker/validators.py", line 18, in __call__
    if address.validate_address(value) is None:
  File "flanker/utils.py", line 99, in wrapper
    return_value = f(*args, **kwargs)
  File "flanker/addresslib/address.py", line 205, in validate_address
    plugin = flanker.addresslib.validate.plugin_for_esp(exchanger)
  File "flanker/addresslib/validate.py", line 108, in plugin_for_esp
    if grammar[0].match(mail_exchanger):
@hellysmile
Copy link
Contributor Author

Without cache drivers i have no exceptions, but with pylibmc based cache backend looks there is some bytes based objects, which produces flanker exceptions...

@dmpayton
Copy link
Owner

Thanks @hellysmile, I'll have a look at this in the next day or so. Is an exception thrown when using a different django cache, like django.core.cache.backends.locmem.LocMemCache, or just with pylibmc?

@dmpayton
Copy link
Owner

@hellysmile Unfortunately, I'm unable to duplicate using django-pylibmc or django-pylibmc-sasl. Can you please post what your settings.CACHES looks like, as well as an example of how you're triggering the exception?

@hellysmile
Copy link
Contributor Author

@dmpayton, i am using https://github.com/rdegges/django-heroku-memcacheify on heroku with Python 2.7.4 and an exceptions comes at django.contrib.admin form

@dmpayton
Copy link
Owner

@hellysmile This is an issue in flanker, and I've opened a ticket to try and get it resolved. For what it's worth, I've also run into this now.

mailgun/flanker#31

Since this isn't an issue in django-flanker, I'm going to close out this ticket. Thanks again!

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

No branches or pull requests

2 participants