-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Error 400 raises TypeError: expected string or buffer #13
Comments
@H0neyBadger - sorry for the super delayed response here. I just want to check in with you if you remember if and how this was resolved on your end and if this has anything to do with |
@kyleobrien91 @H0neyBadger - same error here. we use django.utils.translation.ugettext_lazy. ugettext_lazy translates the strings in a lazy fashion if isinstance(s, Promise):
# The input is the result of a gettext_lazy() call.
return s So smart_text will never return a string in this case.
Temporary fix: override the _to_xml() method and use
I hope this has answered your question I have already created a fork. But I am now 2 weeks on vacation. |
Hello,
I often get the following error when my API is supposed to raises an error 400.
In the debug report, I can see the following value:
Did I miss something in my DRF configuration?
The text was updated successfully, but these errors were encountered: