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
422 "No records matched" error when deploying #6403
Comments
Hi @ali-kamalizade do you have a reproduction case you can share with files and everything? We're investigating and having something reproducible would help a ton. Thanks! |
Hi @kitop , thank you for your reply! Unfortunately, I can't share any reproduction. What I do think is it may simply be related to the size. In our case, the folders (en, de - see the file structure above) have basically the same size. Right now it's ~28MB per folder. Hence, before we did the localization we only had to deploy 28MB while the size needed to be uploaded to Netlify has now been doubled (2 * 28MB = 56MB). I also have to state that it does not fail all the time (the worst kind of bugs: e.g. it failed 1/4 times today). |
Gotcha. |
The files are basically the same: when doing a production build, the builder goes through the HTML and TypeScript files to replace any marked texts with the ones in the respective translation files (XLF). We are using the i18n capabilities of Angular. Hence the project structure looks like a typical Angular project, containing index.html, JS bundles, scripts (e.g. analytics) and assets (e.g. app logo). Hope this helps! |
Thanks! |
Not that I'm aware of, it's a pretty simple setup and we don't use any Netlify build plugins. It's basically running the production build and then deploying it right away with the Netlify CLI as part of our GitHub workflow. |
Describe the bug
I am adding multi-language support to one of our web apps. We use GitHub actions to deploy new versions. This has worked so far but since changing the structure of our app the deployment appears to fail rather often. The error logs mention a 422 unprocessable entity error.
The file structure in the file browser looks like this:
But the deployment itself seems (?) to have worked as the changes seem to be available in production hence it might be something after the deployment that the Netlify CLI is attempting to do which causes our GitHub workflow to fail.
Error logs
Steps to reproduce
It is hard to reproduce reliably but here is my best guess:
npx netlify deploy --prod --build --filter apps/web-app
Configuration
Environment
I am using netlify-cli@17.16.3.
The text was updated successfully, but these errors were encountered: