You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(...)
DEBUG:spyne.interface._base: enumerating classes for method 'MyMethod'
DEBUG:spyne.interface._base: adding class "<class 'spyne_header_test.MyHeader'>" for '{myapp}MyHeader'
(...)
Failing:
(...)
DEBUG:spyne.interface._base: enumerating classes for method 'MyMethod'
DEBUG:spyne.interface._base: adding class "<class 'spyne_header_test.MyHeader'>" for '{spyne_header_test}MyHeader'
(...)
Giving the derived ComplexModel an explicit __namespace__ attribute solves the issue.
Am I maybe missing something obvious?
PS.: this has been tested on py2 and py3, with the same results. All tests with 2.12.14 and current master.
The text was updated successfully, but these errors were encountered:
Hi there,
It seems the following code fails to parse
in_header
when used with gunicorn orDjangoApplication
, but works withwsgiref
:If you start it as a script, it returns:
However, starting the same script with
gunicorn spyne_header_test:app
(or wrapping it in aDjangoApplication
) leads to:Both tests use this as POST content (found in this old stackoverflow question):
The debug log gives some clues:
Working:
Failing:
Giving the derived
ComplexModel
an explicit__namespace__
attribute solves the issue.Am I maybe missing something obvious?
PS.: this has been tested on py2 and py3, with the same results. All tests with 2.12.14 and current master.
The text was updated successfully, but these errors were encountered: