Closed thekevinbrown closed 2 days ago
I found logs for some PUT requests, and it looks like Turbo is using routes that this doesn't create?
{"severity":"INFO","level":30,"time":1719896889256,"pid":8,"hostname":"169.254.107.141","reqId":"J4tZq9GIQxOfXJv0YJ6OXw-4","req":{"method":"PUT","url":"//v8/artifacts/d364b6d612272232?slug=exogee","hostname":"24ebnxsqo5isjteph2igqmhk6m0npwoa.lambda-url.ap-southeast-2.on.aws","remoteAddress":"103.106.231.21"},"message":"incoming request"},
{"severity":"INFO","level":30,"time":1719896889273,"pid":8,"hostname":"169.254.107.141","reqId":"J4tZq9GIQxOfXJv0YJ6OXw-4","message":"Route PUT://v8/artifacts/d364b6d612272232?slug=exogee not found"},
{"severity":"INFO","level":30,"time":1719896889274,"pid":8,"hostname":"169.254.107.141","reqId":"J4tZq9GIQxOfXJv0YJ6OXw-4","res":{"statusCode":404},"responseTime":17.527318999986164,"message":"request completed"}
Does the server currently create a /v8/
route?
Edit: I see in the tests that it should, why is this a 404?
Looks like it was the extra slash, e.g. I had this in my .turbo/config.json
{
"apiurl": "https://24ebnxsqo5isjteph2igqmhk6m0npwoa.lambda-url.ap-southeast-2.on.aws/"
}
Switching it to:
{
"apiurl": "https://24ebnxsqo5isjteph2igqmhk6m0npwoa.lambda-url.ap-southeast-2.on.aws"
}
Fixed it.
🐛 Bug Report
I have configured the server on Lambda with S3 as per https://ducktors.github.io/turborepo-remote-cache/running-in-lambda.html. I configured
.turbo/config.json
as per the docs as well. Nothing is ever stored in the s3 bucket, and the logs don't seem to indicate any errors other than 404s. I'm not sure what to do to debug this.To Reproduce
Deploy in Lambda following the docs
Expected Behaviour
I expected build artifacts to land in S3, or for errors to be logged.
Actual Behaviour
Logs show no function errors that would indicate there's an issue. 404s are returned. I don't see where turbo is uploading the artifacts.
I'm not certain this is a bug in turborepo-remote-cache yet, but I am unsure how to debug what's going on here.
Your Environment