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

【BUG】Deplpy Success, But I can not open the cloudfront url #53

Open
tonyljx opened this issue Aug 4, 2024 · 6 comments
Open

【BUG】Deplpy Success, But I can not open the cloudfront url #53

tonyljx opened this issue Aug 4, 2024 · 6 comments

Comments

@tonyljx
Copy link

tonyljx commented Aug 4, 2024

After I clone the repo, and generate an access key.

I follow the command on Readme, after cdk deploy.

I want to visit https://xcxxxxx.cloudfront.net/images/rio/1.jpeg?format=auto&width=300

But It tell me an error, showing a 【Internel Server Error】

What happens? Can anyone help me solve this issue?

image
@pieter-vandenburg
Copy link

Confirmed. I get the same error.

Ubuntu 24.04
Node v18.19.1
aws-cli/2.17.22 Python/3.11.9 Linux/6.10.2-arch1-2 exe/x86_64.ubuntu.24

@pieter-vandenburg
Copy link

@tonyljx I updated the node version to 20, then cleaned up all the package-lock.json and node_modules files/folders and then reissued these commands:

cd image-optimization
npm install
npm run build
cdk deploy

And it worked for me.

@sejno
Copy link

sejno commented Aug 14, 2024

I still have the same problem, I'm building and deploying on a M1 Mac and the lambda runtime is as setup in the code x64. image-processing function complain missing sharp for x64 regardless of npm install sharp --prefix functions/image-processing/ --os=linux --cpu=x64 that is run on build.

@piotrekwitkowski
Copy link
Contributor

Hi @sejno, we have updated the prebuild script yesterday, could you delete the stack, clone the repo again and try to redeploy?

@IhebMarnaoui
Copy link

@piotrekwitkowski I also got the same error about missing sharp dependencies even though I have the latest version, more details here: #55
Can you please assist ? thank you!

@sejno
Copy link

sejno commented Dec 22, 2024

Hi @sejno, we have updated the prebuild script yesterday, could you delete the stack, clone the repo again and try to redeploy?

Yes it worked. Sorry for the late replay

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

No branches or pull requests

5 participants