platform icon indicating copy to clipboard operation
platform copied to clipboard

[BUG] loading chunk failed with 502

Open killerprojecte opened this issue 8 months ago • 7 comments

I have upgrade to the latest version, but this problem still here.

loading some .js get 502 code

killerprojecte avatar Apr 02 '26 07:04 killerprojecte

Connected to Huly®: UBERF-16177

huly-github-staging avatar Apr 02 '26 07:04 huly-github-staging

This reads as a deployment/proxy support question (a 502 comes from the gateway in front of the front service) rather than a code defect or a concrete feature request. It may be better suited to the community channels or documentation. If maintainers agree, please consider closing.

MichaelUray avatar Oct 20 '26 15:10 MichaelUray

@killerprojecte — as explained above, this does not look like something that can be addressed in the codebase. Could you please close this issue if you agree? If you think there is a code change needed after all, please describe what should change.

MichaelUray avatar Oct 20 '26 22:10 MichaelUray

4. @killerprojecte — as explained above, this does not look like something that can be addressed in the codebase. Could you please close this issue if you agree? If you think there is a code change needed after all, please describe what should change.

I do not believe this is a deployment issue, as the instance had been running stably for several months before suddenly becoming unusable. Furthermore, the problem persists even after a complete re-setup following the latest deployment guide. As a user, I have no insight into the project’s actual code or architecture, and I am therefore unable to pinpoint the specific cause of the issue.

killerprojecte avatar Oct 21 '26 03:10 killerprojecte

@killerprojecte Thanks for the details — that is useful, and a setup that worked for months and fails even after a clean re-setup does point to something other than a simple proxy misconfiguration. To narrow it down, could you share:

  1. Which requests return 502 (the exact URL paths of the failing chunks from the browser's network tab) and whether it is always the same files.
  2. The logs of the front container (and of your reverse proxy) around the time of a failing request.
  3. Whether the front container restarts or runs out of memory (docker ps uptime / docker inspect OOMKilled), and the free disk space on the host.
  4. The image versions you run and whether the front service is behind an additional proxy or CDN.

With that it should be possible to tell whether the 502 comes from the front service itself or from something in front of it.

MichaelUray avatar Oct 21 '26 04:10 MichaelUray

@killerprojecte Thanks for the details — that is useful, and a setup that worked for months and fails even after a clean re-setup does point to something other than a simple proxy misconfiguration. To narrow it down, could you share:

  1. Which requests return 502 (the exact URL paths of the failing chunks from the browser's network tab) and whether it is always the same files.
  2. The logs of the front container (and of your reverse proxy) around the time of a failing request.
  3. Whether the front container restarts or runs out of memory (docker ps uptime / docker inspect OOMKilled), and the free disk space on the host.
  4. The image versions you run and whether the front service is behind an additional proxy or CDN.

With that it should be possible to tell whether the 502 comes from the front service itself or from something in front of it.

I am unable to provide further logs, but I believe this is a front-end issue; certain JavaScript files return a 502 status code upon loading, which prevents the browser from displaying the page correctly. As I have been unable to resolve this problem, I have switched to other software to continue our work.

killerprojecte avatar Oct 21 '26 05:10 killerprojecte

@killerprojecte Thanks for explaining, and I'm sorry this prevented you from continuing with Huly. You're right that failed JavaScript downloads can stop the page loading. My earlier suggestion that this could not be a code issue was too definite: a 502 usually comes from a proxy, but a failure in the front service can trigger it.

Without the failing URLs or diagnostic data, I can't identify the cause or propose a specific fix. I understand you've moved on and can't provide more logs.

For anyone encountering this later, the most useful evidence is a failing URL, matching proxy/front logs, image versions, and whether front restarted or was OOM-killed.

MichaelUray avatar Oct 21 '26 06:10 MichaelUray