Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Unanswered
Caching issue after upgraded python 3.13 and q2 sdk to 2.308.0

Hi, I was initally using 3.12 with sdk 2.126.1. Its about time to update to do some maintance on my extension, so I update the envioment (remove dev) and sdk to the latest version. I am now on python 3.13.5, and q2-sdk: 2.308.0. Without code changes, when I run the extensio on development server, I now getting Customer Key is unset, but cache requested at stack level. Refusing to cache. execption.

What is this cusomer key?

Stack trace below:

/.env/lib/python3.13/site-packages/q2_sdk/core/http_handlers/hq_handler.py", line 484, in _handle_soap_request
custom_response = await self.q2_post(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/.env/lib/python3.13/site-packages/q2_sdk/core/http_handlers/tecton_base_handler.py", line 109, in q2_post
return await super().q2_post(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/.env/lib/python3.13/site-packages/q2_sdk/core/http_handlers/hq_handler.py", line 374, in q2_post
route_response = await self.route_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^
/.env/lib/python3.13/site-packages/q2_sdk/core/http_handlers/hq_handler.py", line 698, in route_request
return await self.call_route(route)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/.env/lib/python3.13/site-packages/q2_sdk/core/http_handlers/hq_handler.py", line 737, in call_route
return await route(*arg_types["positional"], **arg_types["keyword"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/.env/lib/python3.13/site-packages/q2_sdk/core/web.py", line 65, in wrapper
response = await func(self)
^^^^^^^^^^^^^^^^
/extension.py", line 107, in get_token
jwt = await self._create_token()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/extension.py", line 137, in _create_unblu_token
return await self.jwk_service_handler.create_token(jwt_claims)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/extension.py", line 136, in create_token
jwks = await self.get_jwks()
^^^^^^^^^^^^^^^^^^^^^
/extension.py", line 102, in get_jwks
if jwks := self.cache.get("jwks"):
^^^^^^^^^^
/.env/lib/python3.13/site-packages/q2_sdk/core/http_handlers/base_handler.py", line 333, in cache
self._cache = self.stack_cache
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/functools.py", line 1026, in get
val = self.func(instance)
/.env/lib/python3.13/site-packages/q2_sdk/core/http_handlers/hq_handler.py", line 266, in stack_cache
raise CacheConfigError
q2_sdk.core.cache.CacheConfigError

0

FYI, the self.cache() method is used in Ardent extension

— Yin Zhou   7 months ago
0

Not familiar with version 2.606.1, It seems in the latest release they were fixing something with default values on the cache which may have caused this. I.E. they fixed a bug that you were unintentionally relying on for your extension to work. Asking the team on this one.

— Trey Teter   7 months ago
0

Correction: I mean from q2-sdk==2.126.1 to 2.308

— Yin Zhou   7 months ago
Votes Newest

Answers

199 Views
0 Answers
7 months ago
7 months ago