Hue via Knox – “Snippet type 1 is not configured” & WSGIRequest serialization error after upgrade
Hello,
After upgrading CDP Private Cloud Base
**from 7.1.7-1.cdh7.1.7.p2000.37147774 to 7.1.9-1.cdh7.1.9.p1013.58158856**,
we can no longer access Hive databases through Hue behind Knox
(Authentication backend: `KnoxSpnegoDjangoBackend
### Symptoms
1. Hue UI displays
Snippet type 1 is not configured.`).
2. Hive databases and tables are no longer listed.
3. Hue logs (`runcpserver.log`) show
TypeError: Object of type WSGIRequest is not JSON serializable
### Context
* Hue is managed by Cloudera Manager; authentication is Knox → LDAP (Active Directory).
* Hive is accessed through Knox (HTTPS 8443).
* OS: RHEL 8.6; Python 3.8 shipped with the parcel.
**Knox gateway log** records the following cookie-related error
(ResponseProcessCookies.java:processCookies(130)) - Invalid cookie header:
"Set-Cookie: csrftoken=1pPR9AOs9sRQaRGMxEws09bexNRMYg7W8SgJZGAlUzkBHZInYBs3IOaLBFisJjZj;
expires=Tue, 12 May 2026 09:13:19 GMT; HttpOnly; Max-Age=31449600; Path=/;
SameSite=Lax; Secure". Invalid 'expires' attribute: Tue, 12 May 2026 09:13:19 GMT

