Skip to content
New issue

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

Error making HTTP request: HTTP status server error (501 Not Implemented) #402

Open
bitttttten opened this issue Jul 13, 2024 · 9 comments

Comments

@bitttttten
Copy link

🐛 Bug Report

We upgraded our monorepo to [email protected], and after building we are seeing these errors on Vercel:

WARNING  failed to contact remote cache: Error making HTTP request: HTTP status server error (501 Not Implemented) for url https://our-remote-cache.s3.amazonaws.com/team_xxxxx/yyyyyyy?AWSAccessKeyId=xxxxxxxxxxxxxx&Content-Type=application%2Foctet-stream&Expires=xxxxx&Signature=xxxxxx&X-Amzn-Trace-Id=xxxxxx&x-amz-security-token=xxxx&teamId=xxxxxx&slug=xxxxx)

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

  • os: CircleCI, Vercel, Mac
@haseakito
Copy link

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 [email protected] for our project.

@fox1t
Copy link
Collaborator

fox1t commented Jul 18, 2024

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?

@fox1t
Copy link
Collaborator

fox1t commented Jul 18, 2024

@bitttttten, can you please check if the cache is still working? Since it is a warning, it might be a non-blocking step.

@matteovivona
Copy link
Collaborator

matteovivona commented Jul 18, 2024

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

@matteovivona
Copy link
Collaborator

matteovivona commented Jul 18, 2024

Closing because it's a sort of duplicate of this #323

@bitttttten
Copy link
Author

@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

@bitttttten
Copy link
Author

the additional comment and other issue you linked is a 412 error, my error is a 501

@fox1t fox1t reopened this Jul 18, 2024
@fox1t
Copy link
Collaborator

fox1t commented Jul 18, 2024

Reopening this because we want to be sure it is a duplicate before closing.

@matteovivona matteovivona changed the title turbo@2 support Error making HTTP request: HTTP status server error (501 Not Implemented) Jul 26, 2024
@relsunkaev
Copy link

relsunkaev commented Aug 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants