GoSungrow icon indicating copy to clipboard operation
GoSungrow copied to clipboard

ERROR: unknown error 'Missing parameter in request header: x-access-key'

Open bepehr opened this issue 9 months ago • 1 comments

Hi I want to install it on windows and with my open app-key but I got this error

C:\\Users\bepeh\Downloads\GoSungrow-windows_amd64.tar>GoSungrow.exe api login
Error: unknown error 'Missing parameter in request header: x-access-key'
Usage:
  GoSungrow api login [flags]

Examples:
        GoSungrow api login


Flags: Use "GoSungrow help flags" for more info.

Additional help topics:

ERROR: unknown error 'Missing parameter in request header: x-access-key'

And my config is this file

{
  "appkey": "MyAppkeyThatIGotInDeveloperWebsite",
  "config": "C:\\Users\\bepeh\\.GoSungrow\\config.json",
  "debug": false,
  "dir": "",
  "help": false,
  "host": "https://gateway.isolarcloud.com.hk",
  "modbus-host": "",
  "modbus-password": "",
  "modbus-port": "502",
  "modbus-user": "",
  "mqtt-host": "",
  "mqtt-password": "",
  "mqtt-port": "",
  "mqtt-user": "",
  "out": "",
  "password": "MyPassWord",
  "quiet": false,
  "save": false,
  "timeout": "30s",
  "token-expiry": "",
  "user": "MyUserInProfilePage"
}

bepehr avatar Jun 07 '25 13:06 bepehr

Where did C:\\Users\bepeh\Downloads\GoSungrow-windows_amd64.tar>GoSungrow.exe come from?

If you got it by downloading:

then that is almost certainly the cause of your problem. You should read this gist. I don't own any Windows machines so the gist doesn't have any step-by-step for that platform. You should see the gist as a guide for what needs to be done. If you want to compile from scratch on Windows, there are bound to be instructions for setting that up on Windows (eg Googling). Another possibility is if you own a Linux machine as well as Windows, you could cross-compile for Windows on Linux.

Whether your custom app key will work with the recompiled binary is something I don't know. As far as I'm aware, everyone has used one of the two app keys listed in the gist. If your custom key works with the recompiled binary then I'd appreciate it if you'd report back by adding to this issue. I'm interested in two things:

  1. Whether custom app keys work; and
  2. Instructions for obtaining a custom app key (which might just be you providing a URL for the instructions you followed).

If that all works then I'll add another part to the gist.

Hope this helps solve your problem.

Paraphraser avatar Jun 08 '25 00:06 Paraphraser