-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: sam build - JSONDecodeError #7092
Comments
Thanks for opening this issue, just want to confirm, is the SAM CLI being used the one that is provided in the runner, or is it a manual installation that you are using? Additionally, would it be possible to post more of the logs of the function that failed to build using the Just to poke at the command/template a bit, would it be possible to build within a container environment (ie. |
I encountered the same issue:
This unexpected error occurred while executing the sam build. Here's the command we are using in the GitHub action workflow: |
also encountered same issue today. |
also experienced today. Build file is that which was generated by SAM pipelines. |
I am experiencing this problem and can re-produce it every time. Steps:
Running this exact same process on an arm64 EC2 (t4g) works. So it appears the problem is to do with mis-matching archs. I have been able to do this in the past so has anything changed to affect support of "cross arch"? |
Description:
I am building and deploying with SAM inside a Github Actions runner and occasionally get an error on the
sam build
command.Steps to reproduce:
The exact command that I'm running is
sam build --template ${SAM_TEMPLATE} --use-container
, the error output is below. This happens maybe once out of every 8-10 deployments, I have not been able to consistently reproduce the error.It seems to be more prevalent when I am deploying SAM applications that have more resources in the
template.yaml
but that's purely anecdotal. I have never received this error when runningsam build
on either of my local machines; one of these is Windows 10 and the other is running Ubuntu 22.04.4 LTS. The Github runner also appears to be running that same version of Ubuntu.Observed result:
SAM builds all of my resources but after building the final resource, instead of a "Build Succeeded" message I receive this error:
Expected result:
The command should run successfully.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: 1.117.0I can add the output of
sam --info
to this Issue as well.Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: