leapconnect icon indicating copy to clipboard operation
leapconnect copied to clipboard

Error at creating account

Open infomaestro opened this issue 6 months ago • 5 comments

Error while starting this new version ... creating new account

Unexpected end of JSON input

infomaestro avatar May 18 '26 09:05 infomaestro

resolved changing vite.config.js in the follow : export default defineConfig({ base: './', plugins: [vue()], server: { port: 5173, proxy: { '/api': { target: 'http://127.0.0.1:8099', changeOrigin: true, }, '/ws': { target: 'http://127.0.0.1:8099', changeOrigin: true, ws: true, }, }, }, })

Im using win8.1

infomaestro avatar May 18 '26 10:05 infomaestro

resolved changing vite.config.js in the follow : export default defineConfig({ base: './', plugins: [vue()], server: { port: 5173, proxy: { '/api': { target: 'http://127.0.0.1:8099', changeOrigin: true, }, '/ws': { target: 'http://127.0.0.1:8099', changeOrigin: true, ws: true, }, }, }, })

Im using win8.1

Interesting, using the localhost domain name doesn't work, but using the local IP address It does.

Can you create a pull request for this fix?

Thanks

markoceri avatar May 19 '26 17:05 markoceri

Ciao, segnalo qui perché anche io ho un problema dopo la versione 0.7.1, anche se l’errore sembra diverso da quello dell’issue.

Dopo aggiornamento/reinstallazione di LeapConnect 0.7.1 come add-on Home Assistant, l’add-on prova ad avviarsi ma poi va subito in stato errore.

Ambiente:

  • Home Assistant add-on: LeapConnect
  • Versione: 0.7.1
  • Stato: error

Errore nei log:

ModuleNotFoundError: No module named 'httpx'

Trace rilevante:

File "/app/main.py", line 72, in from services.abrp import AbrpService

File "/app/services/abrp.py", line 15, in import httpx

Ho verificato anche da terminale con:

ha apps logs 36565c80_leapconnect | grep -i "ModuleNotFoundError|httpx|abrp"

Output:

from services.abrp import AbrpService File "/app/services/abrp.py", line 15, in import httpx ModuleNotFoundError: No module named 'httpx'

Stato attuale add-on:

state: error version: 0.7.1 version_latest: 0.7.1

Sembra che httpx venga importato da services/abrp.py, ma non sia presente tra le dipendenze runtime del container/add-on.

Forse è un problema separato rispetto a “Unexpected end of JSON input”, ma lo segnalo qui perché anche questo è comparso dopo la 0.7.1.

Possibile fix: aggiungere httpx alle dipendenze Python runtime/build dell’add-on.

Noix93 avatar May 19 '26 19:05 Noix93

Ciao, segnalo qui perché anche io ho un problema dopo la versione 0.7.1, anche se l’errore sembra diverso da quello dell’issue.

Dopo aggiornamento/reinstallazione di LeapConnect 0.7.1 come add-on Home Assistant, l’add-on prova ad avviarsi ma poi va subito in stato errore.

Ambiente:

  • Home Assistant add-on: LeapConnect
  • Versione: 0.7.1
  • Stato: error

Errore nei log:

ModuleNotFoundError: No module named 'httpx'

Trace rilevante:

File "/app/main.py", line 72, in from services.abrp import AbrpService

File "/app/services/abrp.py", line 15, in import httpx

Ho verificato anche da terminale con:

ha apps logs 36565c80_leapconnect | grep -i "ModuleNotFoundError|httpx|abrp"

Output:

from services.abrp import AbrpService File "/app/services/abrp.py", line 15, in import httpx ModuleNotFoundError: No module named 'httpx'

Stato attuale add-on:

state: error version: 0.7.1 version_latest: 0.7.1

Sembra che httpx venga importato da services/abrp.py, ma non sia presente tra le dipendenze runtime del container/add-on.

Forse è un problema separato rispetto a “Unexpected end of JSON input”, ma lo segnalo qui perché anche questo è comparso dopo la 0.7.1.

Possibile fix: aggiungere httpx alle dipendenze Python runtime/build dell’add-on.

This issue was fixed in version 0.7.2.

markoceri avatar May 26 '26 17:05 markoceri

resolved changing vite.config.js in the follow : export default defineConfig({ base: './', plugins: [vue()], server: { port: 5173, proxy: { '/api': { target: 'http://127.0.0.1:8099', changeOrigin: true, }, '/ws': { target: 'http://127.0.0.1:8099', changeOrigin: true, ws: true, }, }, }, })

Im using win8.1

fixed with the release 0.7.3

markoceri avatar May 26 '26 18:05 markoceri