Hey all, I am using `vitest-pool-
Hey all, I am using
vitest-pool-workers
to test my app in Github Action, and running into the following error with VectorizeIndex.query()
:
It works when testing locally locally but fails in the Github Action environment. Has anyone else ran into this issue?
Thanks in advance! Please tell me if I should provide any more details4 Replies
Hey @zhichenguo. Could you please share some details about your Cloudflare account and Vectorize index over DM. I can look into specific errors associated with your account.
Thanks so much @garvitg! Is it ok if I private message you?
Yes please
We resolved it. The cause of the issue was that the Github Action environment is not logged in to Cloudflare, so it cannot access the real bindings.
You can reproduce this locally by logging out of cloudflare (
wrangler logout
), then run the tests and click "deny" when the Cloudflare Oauth screen pops up in the browser
To run vitest-pool-workers
tests in the Github Action, add the CLOUDFLARE_ACCOUNT_ID
and CLOUDFLARE_API_TOKEN
environment variables to the Action
Thanks @garvit!