We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the queryTimeout option, the promise returned by faunaClient.query(xxx, { queryTimeout: 30 }) never resolves.
queryTimeout
faunaClient.query(xxx, { queryTimeout: 30 })
This was my code in a Cloudflare Worker. The promise would simply never resolve.
const projectRef = q.Ref(q.Collection("Projects"), options.projectId); await faunaClient .query<string | null>( q.If( q.Exists(projectRef), q.Select(["data", "flagsRevision"], q.Get(projectRef)), null ), { queryTimeout: 10 } ) .catch((error) => { console.error("fauna error"); console.error(error); return null; })
As a workaround, I used the signal option instead of the queryTimeout.
signal
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using the
queryTimeout
option, the promise returned byfaunaClient.query(xxx, { queryTimeout: 30 })
never resolves.This was my code in a Cloudflare Worker. The promise would simply never resolve.
As a workaround, I used the
signal
option instead of thequeryTimeout
.The text was updated successfully, but these errors were encountered: