supergeorg / Grocy-SwiftUI

A client for Grocy for macOS and iOS, written with SwiftUI
GNU General Public License v3.0
177 stars 17 forks source link

Cannot connect to Grocy on my HAG #193

Open olivievranska opened 8 months ago

olivievranska commented 8 months ago

Hello,

I'm running Grocy addon on my Home Assistant Green, incl. Let's Encrypt certificate (valid to January 2024), URL https://hag.DOMAIN.TLD:8123. I tried to connect iOS app using QR code but I'm getting error:

"Connection to server failed. Server https://hag.DOMAIN.TLD:8123 Error: Operaci nelze dokončit. (Grocy_Mobile.APIError chyba 5.)

See attached log.

Thank you for solution. grocy-swiftui_log.log

supergeorg commented 8 months ago

The message says a malformed JSON file. This usually happens with the wrong address configuration. (Or missing authentication).

For Home Assistant, please check if the plugin and its paths are configured correctly and the token works.

olivievranska commented 8 months ago

The message says a malformed JSON file. This usually happens with the wrong address configuration. (Or missing authentication).

For Home Assistant, please check if the plugin and its paths are configured correctly and the token works.

Grocy is working like a charm in HA iOS app, also in web browsers on desktop (Edge, Chrome, Opera) and iOS (Safari, Chrome).

I installed Grocy on my HAG a month ago, I tried to connect iOS app but it was not working due missing certificate as HAG was running only on http and the same subdomain as my Synology (synology.DOMAIN.TLD), separated only by port 8123.

So I created dedicated subdomain hag.DOMAIN.TLD and Let's Encrypt certificate a few days ago and tried to connect Grocy iOS app again.

I'm getting the same error for both ways - QR code, permanent token - and I'm also not able to create API Key using Grocy iOS app.

What should I do?

How can I reset Grocy iOS app to default to remove all data...?

Thanks!