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

Admin 6.10.3: Cannot parse json5 config for each adapter using jsonconfig #2129

Closed
crycode-de opened this issue Sep 25, 2023 · 5 comments
Closed

Comments

@crycode-de
Copy link

Describe the bug
With Admin 6.10.3 on my test installation I can't open any instance config for adapters using jsonconfig.
The part of the website normally containing the config stays empty and an error "[JsonConfig] Cannot parse json5 config!" is shown.

To Reproduce
Steps to reproduce the behavior:

  1. Update Admin to 6.10.3
  2. Open any adapter instance config of an adapter using jsonconfig
  3. See error

Expected behavior
Adapter instance config renders.

Screenshots & Logfiles

grafik

grafik

Browser console output:

[JsonConfig] Cannot parse json5 config! [instrument.ts:144]
SyntaxError: JSON5: invalid end of input at 1:1
    gu index.js:1456
    du index.js:1405
    start index.js:1189
    ru index.js:376
    value JsonConfig.tsx:435
    promise callback*value JsonConfig.tsx:410
    B JsonConfig.tsx:237
    promise callback*n JsonConfig.tsx:237
    React 13
    onHashChanged App.jsx:1398
    o helpers.ts:98
[instrument.ts:144]

Versions:

  • Adapter version: 6.10.3
  • JS-Controller version: 5.0.12
  • Node version: 20.5.1
  • Operating system: Ubuntu 22.04
@mcm1957
Copy link
Contributor

mcm1957 commented Sep 25, 2023

@foxriver76
I think the jsonConfig-demo is using json5 if you need a test environment.

@foxriver76
Copy link
Collaborator

Its not necessarily json5, in my test installation I can only reproduce it with Discord adapter so far.

@ticaki
Copy link
Contributor

ticaki commented Sep 25, 2023

This is a admin .3 problem not a testing enviroment. Same Problem on production systems with my Alpha Adapter reported. With version .2 every thing works as excepted. https://forum.iobroker.net/post/1050448

Influxdb adapter same problem

foxriver76 added a commit that referenced this issue Sep 25, 2023
@Diginix
Copy link

Diginix commented Sep 25, 2023

I have the same issue with simpe-api adapter v2.7.2.

@foxriver76
Copy link
Collaborator

Is fixed with 6.10.4

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

5 participants