Error when building serverless endpoint
What happened?
I tried to build and deploy a Docker image from my GitHub repository, but it failed with these errors:
Could someone help me understand and fix this? I suspect it might be related to the container size – are there limits or known issues with large image pushes? What’s the best way to resolve this?
Full error
I tried to build and deploy a Docker image from my GitHub repository, but it failed with these errors:
- First, a 401 Unauthorized error when checking some files (blobs).
- Then, a BLOB_UNKNOWN error saying it couldn’t find a required file (sha256:6e909acdb...).
Could someone help me understand and fix this? I suspect it might be related to the container size – are there limits or known issues with large image pushes? What’s the best way to resolve this?
Full error
Solution
Update: I was able to fix the error by changing the deployment method. Instead of deploying directly from the GitHub repo (which failed), I built a Docker image using the exact same Dockerfile, pushed that image to Docker Hub, and then successfully created the endpoint using the Docker Image option referencing the Docker Hub image.
