Open bitttttten opened 1 month ago
I got the same error in my project as well. I got the following error in Google Cloud Platform.
failed to contact remote cache: Error making HTTP request: HTTP status client error (412 Precondition Failed)
We're using turbo@2.0.6 for our project.
OK we need to check the support for version 2. There must be a new call (OPTIONS?) that checks with the server before calling it.
@matteovivona are we able to reproduce this internally?
@bitttttten, can you please check if the cache is still working? Since it is a warning, it might be a non-blocking step.
OK we need to check the support for version 2. There must be a new call (OPTIONS?) that checks with the server before calling it.
@matteovivona are we able to reproduce this internally?
no. we cannot reproduce it and we are on turbo 2.0.7. it could be something on the lambda
Closing because it's a sort of duplicate of this https://github.com/ducktors/turborepo-remote-cache/issues/323
@matteovivona the cache doesn't not work no, we get cache misses on all our tasks. i will dig into the s3 bucket to see if the files are there, although i will have to do that later today.
btw i don't know if it is a duplicate because in that thread the error is a 4xx and here's its a 5xx so my instinct is that it's a different error as the response code is different
the additional comment and other issue you linked is a 412 error, my error is a 501
Reopening this because we want to be sure it is a duplicate before closing.
Similar issue. When redirecting turbo to an s3 pre-signed url, turbo would include the authorization
header. s3 would throw this error because it was detecting multiple authorization methods.
🐛 Bug Report
We upgraded our monorepo to turbo@2.0.6, and after building we are seeing these errors on Vercel:
We are using the AWS Lambda + S3 setup as described https://ducktors.github.io/turborepo-remote-cache/running-in-lambda.
Are there any other steps we need to do? As I can't seem to find any info in the docs although perhaps I have missed something.
Your Environment