Comments (5)
I am closing this. Feel free to open a new one if the issue persists.
from turborepo-remote-cache.
We are facing the same issue on our server.
We are using the most recent version of turbo
as well as this project. The same error message appears in the docker logs.
Is there any solution to this?
from turborepo-remote-cache.
I pulled it down, (opening #7 along the way).
Following the docs, I was able to get remote cache hits locally, using the following steps:
# initial run, cache misses
npx turbo run build --api="http://localhost:3001" --token="abc123"
# second run, local cache hits, no output in locally running remote cache
npx turbo run build --api="http://localhost:3001" --token="abc123"
# delete local cache in my project
rm -rf ./node_modules/.cache/turbo
# third run, no local cache hits, success reading from the locally running remoter cache!
npx turbo run build --api="http://localhost:3001" --token="abc123"
So something in my deployment process or environment seems to be the culprit...
the error seems unrelated to authentication, but this is still very new to me.
from turborepo-remote-cache.
final update for the day, I can also run docker run --env-file=.env -p 3001:3001 fox1t/turborepo-remote-cache
per the README and repeat the above steps - so I think there is something with the way I am trying to dockerize the image in my deployed environment, or the environment itself has quirks I do not yet understand.
stay tuned!
from turborepo-remote-cache.
Hi @bmuenzenmeyer, thanks for opening this issue. First of all, let me clarify the first point: TURBO_TOKEN
value must be the same as the token provided to your Turborepo monorepo. So yes, basically there are the same, and the token is used for authenticating the requests.
Returning to your issue, it is a bizarre one. Fastify returns that error, the framework this project is based on. It happens when the incoming request doesn't have a proper parser. From your log, we can see that it is application/octet-stream
, therefore the request should be parsed correctly since the content-type
is correct and there is a custom parser here.
Where are you trying to deploy it? We deployed it successfully on docker and Kubernetes.
One final note: you don't need to pass --api="http://localhost:3001"
to your build script if .turbo/config.json
contains the apiUrl
key since there are the same.
from turborepo-remote-cache.
Related Issues (20)
- Consider removing @vercel/node from the dependencies HOT 8
- Support Cloudflare Workers HOT 2
- Legacy `fox1t/turborepo-remote-cache` image will be redirected to `ducktors/turborepo-remote-cache`
- ERR_STREAM_PREMATURE_CLOSE on PUT Artifact with Azure Blob Storage implementation HOT 3
- Current state of main branch is not deployable to vercel.
- Lambda/API Gateway integration not working HOT 15
- apiUrl is not working HOT 2
- Dynamic authorization tokens HOT 3
- Help request - configured with s3, issue in the server log HOT 7
- Remote caching disabled since turbo 1.9.4 HOT 5
- Free Hosted Remote Cache discontinued
- Incompatible with Yarn/npm, or Node <18 HOT 1
- [email protected] is no longer supported
- fastify-warning is renamed to process-warning
- querystring API is considered Legacy
- Upgrade uuid to version 7 or higher HOT 1
- request has been deprecated
- azure-storage has been deprecated HOT 1
- Option to log to file HOT 1
- Support read-only mode to prevent unwanted cache update HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turborepo-remote-cache.