CODEBUILD_FAILED error and layout issue

image

Hi, I’m facing this error quite often lately. It happens randomly and can be fixed by just republish the app again.

However, the published app seems unreliable with layout issues happen on random pages.


This is the home page with layout issue, happen when accessing the page directly or refresh on the page.

The issue goes away when navigating to other page and back.

This happens randomly on random pages. Not sure what is causing this behavior. It seems to only happen to this specific app. The other app works fine. And not sure if both of them are related.

Do you have any custom js/components?

I do have some basic components like button, badge, etc. (no-code) And 2 lines of custom script for Zaraz and cookie banner.

Any custom component/JavaScript can cause this, I’d suggest you look in the console for errors and maybe try switching off the scripts until it builds.

are you using zaraz with a domain proxied by cloudflare? if that’s the case probably prerendering the page will throw an error if your custom code is trying to access the global variable zaraz because it’s not there. if that’s the case you have multiple options to fix this:

1 Like

I didn’t know that I can have a domain proxied through Cloudflare with the app hosted with WeWeb. So I don’t :sweat_smile:

This is already the current setup I’m using unfortunately. I only have some tracking pixels in Zaraz which shouldn’t affect the appearance of the app. The other script is from Getterms for cookie consent, don’t expect this to break the page either.

Anyway I’ll do some experiments.

image