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

Deployment Error: The total size of all Environment Variables (7.12KB) exceeds 4KB #69

Open
thesobercoder opened this issue Jan 17, 2021 · 6 comments
Assignees
Labels
Type: Bug Bug or Bug fixes

Comments

@thesobercoder
Copy link

I'm getting this error during deployment.

Error! The total size of all Environment Variables (7.12KB) exceeds 4KB.
Learn More: https://vercel.com/docs/v2/platform/limits#environment-variables
Error: The process '/opt/hostedtoolcache/node/12.20.1/x64/bin/npx' failed with exit code 1

I have two branches, namely - dev and main and they point to staging and prod domains respectively. The staging is working fine, but the prod throwing this error. I have absolutely no environment variables defined in the Vercel project, I have double-checked that.

@amondnet amondnet added the Type: Question Further information is requested label Feb 2, 2021
@amondnet amondnet self-assigned this Feb 2, 2021
@cjcaj
Copy link

cjcaj commented May 4, 2021

Could you post the rest of the logs from the action? It might be that the commit message is too long (-m githubCommitMessage=)

@taehwanno
Copy link

I am having the same problem. Our team is using squash merge as a merge strategy. But if you take a branch by dividing production and stage, the commit message can easily become long. It would be nice if an option was added so that the commit message could be selectively delivered.

@ImOnMars
Copy link

We're having the same issue here. The workaround is to clear the squash and merge description when merging (and leaving only the merge title), but the problem is that there's no way to disable vercel-action passing the description, and no way to disable the description being filled in automatically on the GitHub side, so if anyone merging their own commit (after being approved) forgets to clear the box, the deployment fails.

There's also a separate but partially-related issue (I believe it is independently reported here: #100), where the message isn't quoted properly so if you include certain special characters in commit messages (such as backticks for inline code blocks, which GitHub now supports in commit messages) it will have a syntax error, which, while it is a mostly unrelated issue, the ability to disable passing the message entirely would fix both.

@enesse
Copy link

enesse commented Mar 21, 2022

We ran into the same issue as well, but squashing the commits and giving it a short title fixed the problem. Thanks for the workaround on this.

@amondnet amondnet added Type: Bug Bug or Bug fixes and removed Type: Question Further information is requested labels Mar 22, 2022
@henryruhs
Copy link

henryruhs commented Apr 27, 2022

The commit message should be truncated by this GitHub Action once it reached the 4kb limit.

https://github.com/amondnet/vercel-action/blob/master/index.js#L135
https://www.npmjs.com/package/unicode-byte-truncate

@MFCo
Copy link

MFCo commented Aug 9, 2022

Hi there! Wanted to update you on this issue. The limit has now been increased to 64KB. Here is the changelog

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

No branches or pull requests

8 participants