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

[bug]: Cannot get list of adapter - Error in GUI #2773

Open
1 task done
alkaraschu opened this issue Oct 16, 2024 · 3 comments
Open
1 task done

[bug]: Cannot get list of adapter - Error in GUI #2773

alkaraschu opened this issue Oct 16, 2024 · 3 comments
Labels

Comments

@alkaraschu
Copy link

alkaraschu commented Oct 16, 2024

No existing issues.

  • There is no existing issue for my problem.

Describe the bug

Cannot get list of adapters in the GUI

To Reproduce

open iobroker
go to adapters

Expected behavior

Open a list of all (installed) adapter

Screenshots & Logfiles

image
image

Adapter version

7.1.5

js-controller version

6.0.11

Node version

20.18.0

Operating system

Mac OS

Additional context

No response

@alkaraschu alkaraschu added the bug label Oct 16, 2024
@averlon
Copy link

averlon commented Oct 17, 2024

I have the same issue!

admin-adapter: 7.2.6 (was installed due to some other issue)!

@mcm1957
Copy link
Contributor

mcm1957 commented Oct 17, 2024

@averlon
@alkaraschu
Thanks for reporting.

Please retry after reloading repository data.
There was som invlid data distributed by stable repository.

Go to adapter tab and press "Adapter auf Updates prüfen" (Icon with circular arrow).
image

Afterwards refreh screen. Shoudl work for now..

Please keep Issue open even if it works - there's a code part that must be improved at admin!

@mcm1957
Copy link
Contributor

mcm1957 commented Oct 17, 2024

Problem analyzes (german as copied from Telegram)

In sources-dist.json, also der offiziellen vom Fileserver ausgelieferten Datei, fand sich folgende Zeile beim zigbee2mqtt Adapter:

        ],
        "licenseInformation": "MIT",
        "platform": "Javascript/Node.js",

licenseInformation ist hier ein STRING und nicht wie vorgesehen ein OBJECT.
Der fehlerhafte Eintrag steht auch so im io-package.json auf npm (release 2.13.10).

Damit kommt der Admin nicht zurecht:

react-dom.production.min.js:282 Uncaught TypeError: s.includes is not a function
    at O (Utils.ts:22:18)
    at lt.renderLicenseInfo (AdapterGeneric.tsx:401:15)
    at lt.render (AdapterRow.tsx:94:26)
    at No (react-dom.production.min.js:203:189)
    at zo (react-dom.production.min.js:202:149)
    at xi (react-dom.production.min.js:291:172)
    at bs (react-dom.production.min.js:279:389)
    at vs (react-dom.production.min.js:279:320)
    at gs (react-dom.production.min.js:279:180)
    at ls (react-dom.production.min.js:267:209)
    at S (scheduler.production.min.js:13:203)
    at MessagePort.T (scheduler.production.min.js:14:128)

Codestelle:

if (!url  !url.includes('/LICENSE')  !url.includes('raw.githubusercontent.com')) {
        url = adapterRepo.extIcon;
        if (!url) {
            url = adapterRepo.readme;

Im Debugger (Chrome F12) zeigt sich dass in url statt des Strings aus 'link' nun func() steht.

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

No branches or pull requests

3 participants