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

[REST API] cannot access web interface in 2.4.0.M7 #4302

Closed
mattnl opened this issue Dec 2, 2018 · 7 comments · Fixed by eclipse-archived/smarthome#6638
Closed

[REST API] cannot access web interface in 2.4.0.M7 #4302

mattnl opened this issue Dec 2, 2018 · 7 comments · Fixed by eclipse-archived/smarthome#6638

Comments

@mattnl
Copy link

mattnl commented Dec 2, 2018

When accessing the REST API (http://10.100.100.210:8081/doc/index.html) through a web browser with the 2.4.0.M7 build, I just get the following message:

fetching resource list: http://10.100.100.210:8081/rest/swagger.json; Please wait.

but nothing happens. I just did a clean install of the M7 build, same effect. My default port is set to 8081.

misc-restdocs - 2.4.0.M7 is installed.

Chrome dev tools show:

swagger-ui.min.js:3 Uncaught TypeError: Cannot read property '$ref' of undefined
    at t.exports.a.resolveTo (swagger-ui.min.js:3)
    at t.exports.a.resolveTo (swagger-ui.min.js:3)
    at t.exports.a.resolve (swagger-ui.min.js:2)
    at response (swagger-ui.min.js:2)
    at i (swagger-ui.min.js:2)
    at e.on.response (swagger-ui.min.js:2)
    at swagger-ui.min.js:2
    at f.callback (swagger-ui.min.js:13)
    at f.<anonymous> (swagger-ui.min.js:13)
    at f.r.emit (swagger-ui.min.js:13)

Please see also the community forum:
https://community.openhab.org/t/oh-2-4-0-m7-testing-results/58475/25

@kaikreuzer
Copy link
Member

Sounds similar to swagger-api/swagger-ui#1677.
I have no clue, what has changed and when it last worked, though.

Anybody willing to look into it?

@AngelosF
Copy link
Member

AngelosF commented Dec 2, 2018

I checked 2.4.0.M6 and it works there.
I haven't checked which snapshot build introduced this issue.
S1445 & S1447 have the same issue

I will try to identify the root-cause and report back with my findings

@kaikreuzer
Copy link
Member

Thanks. My best guess would be that it is related to openhab/openhab-core#435 as this now prevents the rest/swagger bundles to be completely restarted.

@AngelosF
Copy link
Member

AngelosF commented Dec 4, 2018

I haven't found the time to debug this one :(

openHAB 2.4.0 Snapshot Build #1448 still has the same issue

I will try again now but someone needs to look into this since it should be fixed before the next Milestone (or 2.4 Release)

@bnjroos
Copy link

bnjroos commented Dec 6, 2018

I have the same issue, is there a way to downgrade from misc-restdocs - 2.4.0.M7 to a lower build just on that package ?
Thanks

@kaikreuzer
Copy link
Member

I have searched a lot and was luckily able to reproduce it in the IDE. It turned out that eclipse-archived/smarthome#6638 makes it work again.

@kaikreuzer
Copy link
Member

Just tested it on the latest distro snapshot and it seems to work fine again!

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

Successfully merging a pull request may close this issue.

4 participants