diff --git a/dashboard/index.html b/dashboard/index.html
index a28ca3f..6ab298c 100644
--- a/dashboard/index.html
+++ b/dashboard/index.html
@@ -1989,7 +1989,15 @@
showToast('Se execută commit...', 'info');
try {
const response = await fetch('/echo/api/eco/git-commit', { method: 'POST' });
- const result = await response.json();
+ const text = await response.text();
+ let result;
+ try {
+ result = JSON.parse(text);
+ } catch {
+ showToast('Proxy timeout — verific status în 3s...', 'info');
+ setTimeout(refreshStatus, 3000);
+ return;
+ }
if (result.success) {
showToast('Commit reușit: ' + (result.files || 0) + ' fișiere', 'success');
setTimeout(refreshStatus, 1000);
@@ -3194,7 +3202,15 @@
if (!confirm('Fac commit și push la toate modificările echo-core?')) return;
try {
const res = await fetch('/echo/api/eco/git-commit', { method: 'POST' });
- const result = await res.json();
+ const text = await res.text();
+ let result;
+ try {
+ result = JSON.parse(text);
+ } catch {
+ showToast('Proxy timeout — verific status în 3s...', 'info');
+ setTimeout(loadGitStatus, 3000);
+ return;
+ }
if (result.success) {
showToast('Commit reușit: ' + (result.files || 0) + ' fișiere', 'success');
setTimeout(loadGitStatus, 1000);