Closed thanhbinh01234 closed 2 months ago
Hello @thanhbinh01234. The invoker
argument expects a string. From your comment, you are passing True
. Could you check or provide a code sample with this fix?
I made a mistake in the original comment. I already passed invoker="public"
as shown in the exception stack.
Could you provide me with a simple code sample which correctly reproduces this issue? Also, please provide me with your Python version as well as the SDK version you're using. If you are using an older version, do check if this still occurs on the latest version as well. Thank you
@exaby73 The problem seems to be an off-by-one error.
This asserts the list length must have at least two items. invoker="public"
gets coerced to invoker=["public"]
which fails the assertion, but invoker=["user1", "user2"]
passes.
According to the typing of
HttpsOptions
class, I should be able to setinvoker
topublic
orprivate
. But when I tried to deploy ahttps_fn.on_request
function withinvoker=True
, an error is raised: