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
message=('The function must be called with one argument, "text",'
I'm testing a 2nd gen python firebase function defined that looks something like the following:
@https_fn.on_call(cors=options.CorsOptions(cors_origins=["xxx"],cors_methods=["get", "post"], ))defnew_gift(req: https_fn.Request) ->https_fn.Response:
logger.info("Request Headers:", dict(req.headers))
ifreq.authorizationisNone:
# Throwing an HttpsError so that the client gets the error details.raisehttps_fn.HttpsError(
code=https_fn.FunctionsErrorCode.FAILED_PRECONDITION,
message="This never shows up anywhere!"
)
During my local testing (over the emulator) the 'message' string isn't really surfaced anywhere - neither to the client when the call to the function is made, nor over the local emulator logs (I'm not sure if the behavior differs over the cloud deployment - yet to test that)
This can't be by design right? Cause what'd be the point of the message string in that case?
The text was updated successfully, but these errors were encountered:
functions-samples/Python/quickstarts/callable-functions/functions/main.py
Line 86 in 071ac15
I'm testing a 2nd gen python firebase function defined that looks something like the following:
During my local testing (over the emulator) the 'message' string isn't really surfaced anywhere - neither to the client when the call to the function is made, nor over the local emulator logs (I'm not sure if the behavior differs over the cloud deployment - yet to test that)
This can't be by design right? Cause what'd be the point of the message string in that case?
The text was updated successfully, but these errors were encountered: