Arduino Cloud issue: can't finish the upload process

Hi,

I have an arduino nano esp32 and I am trying to upload my code via Arduino Cloud.
If I load an example sketch everything goes well, while if I upload my code (more complex) it runs for lots of time and ends 'pending' with these messages in the console

[15:46:22] Initializing Over-The-Air update...
[15:46:22] Starting Over-The-Air update attempt...
[15:46:25] Uploading binary file to the board: [                         ]  0%
[15:46:56] Uploading binary file to the board: [======================== ]  99%
[15:46:56] Flashing binary file to the board…
[15:46:22] Over-The-Air upload pending...

At top right (where there was the compile button) it says 'pending'.
image

If i pass on 'pending..' button with the mouse, I can cancel the process and load the sketch again. The sketch loads but the device stays offline and dosn't communicate via wifi. It's a problem cause I want to share my dashboard ..

Any help?

Thanks!