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
Bad credentials when downloading using @prisma/fetch-engines #16685
Comments
|
Indeed, it should be fixed, It was due to an expired GitHub token on that worker. |
You should be able to prevent on this supposedly internal web service by providing an explicit Can you share what exactly you are doing in that serverless build pipeline? That sounds interesting to understand for us. This code was definitely not written for that use case :D |
@janpio @Jolg42 Thank you for responding, I will be able to test again in several hours. First of all, I would like to ask you if there's any recommendation on how to stick to downloading fixed version. The way we use it is basically like this:
Is there any better/recommended way to package these engines into an AWS Lambda which has only one purpose which is running the migrations? |
The "normal" way to deal with your problem (that you want to have As you mention that you need the migration engine though, a command to trigger that download would be for example Does this help? |
@janpio Thank you, this is helpful 👍 |
Bug description
I am using Prisma as part of AWS Lambda deployed with
serverless
. When packaging the project, we have a custom step (as a javascript file) which downloads prisma engines. Starting today, this step doesn't work anymore because of bad credentials from the CDN hosting the engines.How to reproduce
The errors that I get:
from:
URL which cannot be reached:
https://github-cache.prisma.workers.dev/repos/prisma/prisma-engines/commits?sha=${branch}
Expected behavior
No response
Prisma information
my package.json:
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: