Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting timestamp failed. Web Socket not running #172

Open
mannipulator opened this issue Jun 20, 2023 · 1 comment
Open

Getting timestamp failed. Web Socket not running #172

mannipulator opened this issue Jun 20, 2023 · 1 comment

Comments

@mannipulator
Copy link

I am trying to use the Grocy app, however I keep getting errors. I have installed the Grocy add-on in the Home Assistant OS, the web interface works fine.
In the iOS app, I often get white screens or products can't be saved, always with one of the following error messages:

Getting timestamp failed. Message: hassError(error: Grocy_Mobile.APIError.errorString(description: "Web Socket not running."))
or this:

Product edit failed. Message: hassError(error: Grocy_Mobile.APIError.errorString(description: "Web Socket not running."))

or this:

Getting timestamp failed. Message: ErrorDomain=kNWErrorDomainPOSIX Code=57 "Socket is not connected" UserInfo={NSDescription=Socker is not connected}

or this:

Getting timestamp failed. Message: internalError

Version: 3.3.2
Releasedatum: 12.11.2022
PHP Version: 8.1.19
SQLite Version: 3.41.2

@BizarrePenguin
Copy link

I have the same problem. I get all errors except the last one.
Accessing grocy through home assistant ingress via the homeassistant ui is no problem and I can edit data there just fine. The problem occurs only with the app on IOS and MacOS.

I noticed that when I log out from the server in the app and log back in, then I have a connection and can edit data but after about a minute the errors mentioned occur. After a night sleep it might work again but only for a minute or so.

To give some system context for my installation:

homeassistant:

  • Core: 2023.11.3
  • Supervisor: 2023.11.3
  • Operating System: 11.1
  • Frontend: 20231030.2
  • SSL: self signed certificate (installed root CA on IOS and MacOS)
  • access: local network only (https://homeassistant.local:8123)

homeassistant grocy addon:

  • Version 4.0.3
  • PHP Version 8.1.23
  • SQLite Version 3.41.2
  • OS Linux 6.1.21-v8 SMP Thu Oct 26 14:39:03 UTC 2023 aarch64

IOS app:

  • Version: 2.10.3
  • IOS version: 16.7.2
  • iPhone model: iPhone X

MacOS app:

  • Version: 2.10.3
  • MacOS version: Sonoma 14.0 (23A344)
  • Mac model: MacBook Air M1 2020

As an example, here is the IOS App log after logging out of the server, logging back in and editing some data until it doesn't work anymore:

26.11.2023, 10:19:21: Server check successful. Logging into Grocy Server 4.0.3 with app version 2.10.3.
26.11.2023, 10:19:21: Switched to login modus
26.11.2023, 10:20:01: Quantity unit added successfully.
26.11.2023, 10:20:28: Location added successfully.
26.11.2023, 10:21:27: Store Edeka edited successfully.
26.11.2023, 10:21:33: Store Edeka edited successfully.
26.11.2023, 10:21:38: Store REWE edited successfully.
26.11.2023, 10:21:42: Store REWE edited successfully.
26.11.2023, 10:21:46: Store PicNic edited successfully.
26.11.2023, 10:21:50: Store PicNic edited successfully.
26.11.2023, 10:21:57: Deleting store was successful.
26.11.2023, 10:22:05: Store added successfully.
26.11.2023, 10:22:14: Store EDEKA edited successfully.
26.11.2023, 10:22:33: Getting timestamp failed. Message: Error Domain=NSPOSIXErrorDomain Code=57 "Socket is not connected" UserInfo={NSDescription=Socket is not connected}
26.11.2023, 10:22:34: Getting timestamp failed. Message: hassError(error: Grocy_Mobile.APIError.errorString(description: "Web Socket not running."))
26.11.2023, 10:22:40: Store edit failed. hassError(error: Grocy_Mobile.APIError.errorString(description: "Web Socket not running."))
26.11.2023, 10:22:44: Getting timestamp failed. Message: hassError(error: Grocy_Mobile.APIError.errorString(description: "Web Socket not running."))
26.11.2023, 10:22:45: Getting timestamp failed. Message: hassError(error: Grocy_Mobile.APIError.errorString(description: "Web Socket not running."))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants