coollabsio / coolify-cli

CLI for Coolify API
https://coolify.io
MIT License
70 stars 8 forks source link

Servers list with json error, cannot unmarshal string into Go struct field Server.port of type int #6

Open magixus opened 4 weeks ago

magixus commented 4 weeks ago

issue

coolify servers list json: cannot unmarshal string into Go struct field Server.port of type int

Steps to reproduce

  1. Install coolify on remote server
  2. Setup DNS for FQDN
  3. Test all good (access, resources, proxy ;... no issues at all)
  4. install CLI
  5. `coolify instances add -d "https://FQDN" "token"
  6. test coolify instances version => works fine
  7. test coolify servers list => error
magixus commented 4 weeks ago

I have tested this in postman and it works, it listed all my servers. I think this is a go struct issue where the port has to be valide but in my case, FQDN is set and has no port