mapps code:push giving Unexpected error occurred while communicating with the remote server

Team,

I’m developing a client-side app and have previously uploaded the build using a ZIP file. Recently, I noticed that it’s also possible to push client-side code using the mapps code:push command.

I tried pushing code from my app directory, and while the “Build assets to deploy” step completed successfully, I encountered the following error:

“Unexpected error occurred while communicating with the remote server.”

Could you please help me understand what might be causing this error and how to resolve it?

Thanks in advance!