Skip to content

[Bug] "network Error : EOF" immediately after finding multiple devices on "mqtt sync all" (Rate Limiting?) #147

@Alfystar

Description

@Alfystar

Hello, I am running into a consistent EOF network error when trying to sync my Sungrow devices to my MQTT broker (Home Assistant). The login is successful, and the software correctly identifies my 5 devices, but it crashes instantly right after that step during mqtt sync all.

I suspect that iSolarCloud's firewall is forcefully dropping the connection (EOF) because the application is trying to fetch the data for all 5 devices simultaneously, triggering their anti-scraping/rate-limiting protections.

Environment:

  • GoSungrow Version: 3.0.7
  • Deployment: Docker (using 11notes/docker-sungrow image)
  • Number of Devices: 5
  • Command executed: GoSungrow mqtt sync all

Steps to Reproduce:

  1. Configure GoSungrow with an iSolarCloud account containing multiple devices (e.g., 5).
  2. Run GoSungrow mqtt sync all.
  3. The software logs in successfully, saves the token, prints Found SunGrow 5 devices, and immediately throws Error: network Error : EOF.

Debug Logs:

type=INF msg=starting sungrow (3.0.7)
Email:  in***@******.it
Create Date:    Fri Nov 14 15:00:42 CST 2025
Login Last Date:    2026-04-29 19:02:35
Login Last IP:  
Login State:    1
User Account:   1234566
User Id:    98876544
User Name:  devName
Is Online:  false
2026/04/29 13:02:35 INFO: Connecting to MQTT HASSIO Service...
Token:  777946_[REDACTED_TOKEN]
2026/04/29 13:02:35 INFO: Connecting to SunGrow...
Token File: /sungrow/etc/.GoSungrow/AppService_login.json
2026/04/29 13:02:35 INFO: Found SunGrow 5 devices
Error: network Error : EOF

Proposed Solution / Feature Request:
If this is indeed caused by iSolarCloud's strict rate limiting on simultaneous API calls, would it be possible to introduce a --delay or --throttle flag? This would allow the sync all command to wait a few seconds between fetching each device, preventing the cloud provider from dropping the connection.

Thank you for your time and for this great project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions