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
After upgrading to fauna-python v0.7.0, I am now getting the following error when setting a timeout in the client and making requests:
E fauna.errors.errors.InvalidRequestError: 400: invalid_request
E Invalid header 'x-query-timeout-ms': Invalid number '5000.0'.
The client instantiation code is:
defcreate_fauna_client(secret):
"""Create the FQLv10 client and return it. This should be called handler, or subsequently invoked functions within the handler, so when the lambda context is frozen, the socket connections are not lost. See: https://docs.fauna.com/fauna/current/drivers/known_issues """logger.debug("Initializing FaunaDB client.")
# This timeout is currently set to half of the configured lambda timeout value. If# the terraform code is updated, this should be revisited.client=Client(secret=secret, query_timeout=timedelta(seconds=5))
logger.debug("FaunaDB client initialized.")
returnclient
The text was updated successfully, but these errors were encountered:
After upgrading to fauna-python v0.7.0, I am now getting the following error when setting a timeout in the client and making requests:
The client instantiation code is:
The text was updated successfully, but these errors were encountered: