Closed ronycohen closed 9 years ago
+1 Exactly the same issue
To add to the 401 message, this is the content:
{"error":"unauthorized","reason":"You are not authorized to access this db."}
However I don't think this is relevant to the blank page.
What may be relevant is that the /_api/_plugins/users/admin-dashboard/scripts/plugins.js
file is empty when requested from /_api/_plugins/users/admin-dashboard/index.html
This issue comes from the removal of the content from plugins.js in 2a8632b179e77af6806
Very Temporary Fix:
I manually placed the content from https://raw.githubusercontent.com/hoodiehq/hoodie-plugin-users/106acdb17f7f99175919cc79269b32148f1a8d06/admin-dashboard/scripts/plugins.js (the previous commit before the removal) into [projectDir]/node_modules/hoodie-plugin-users/admin-dashboard/scripts/plugins.js
.
Now the users page works correctly.
Is this something @gr2m could take a look at?
Unless this is part of an architectural change and placing the content back in the file is the wrong way to fix it, I'm happy to create a pull request.
looking into it now, sorry I'm not available a lot to help better at the moment
should be solved via https://github.com/hoodiehq/hoodie-plugin-users/commit/a488d987750e52d1c897b6d97daf42583a86cf9b
The GET http://127.0.0.1:6005/_api/plugins/_changes?include_docs=true&since=0 401 (Unauthorized)
problem should be fixed via https://github.com/hoodiehq/hoodie.admin.js/commit/5cac164b611df9e64543ed2206316fb9d6568723
When you create a new hoodie app, it should already be solved. On existing apps, update "hoodie-plugin-users": "^2.2.1"
in your package.json, rm -rf node_modules
and npm install
should do the trick
please reopen if error persists <3
Thanks @gr2m
@gr2m Still doesnt work for me. admin-dashboard-uikit.css and admin-dashboard-uikit.js just dont exist. I updated everything to the latest version an it still looks the same. Even with a clean new testapp.
@nintra when you create a fresh new app with Hoodie, do you see that, too? Run npm cache clean
first to be sure.
If it works in the fresh Hoodie app, can you run npm ls
in both and compare the versions of the dependencies?
@gr2m
It's similiar. Still doesn't work. I called npm cache clean
, uninstalled / installed hoodie-cli globally and created a new app with hoodie new testapp
. The app was created with older dependencies. But with your suggested plugin-users version.
"version": "3.0.6",
"type": "app",
"dependencies": {
"hoodie-server": "^3.0.0",
"hoodie-plugin-appconfig": "^2.0.1",
"hoodie-plugin-email": "^1.0.0",
"hoodie-plugin-users": "^2.2.1"
},
Yesterday i've created a new app but updated all dependencies to latest.
"dependencies": {
"hoodie-server": "latest",
"hoodie-plugin-appconfig": "latest",
"hoodie-plugin-email": "latest",
"hoodie-plugin-users": "latest"
},
It looks similar. No dashboard js, no dashboard css loaded. But there is a little difference i think. Before your update the files where 404 Not Found
. But now if you want to GET
css js it redirects to the testapp index.html
I did create some users with APis and with the Test APP. And on my http://127.0.0.1:6005/#plugin/users admin app I have a White Screen when I' supposed to be able to manage the users.
errors in the console :
GET http://127.0.0.1:6005/_api/plugins/_changes?include_docs=true&since=0 401 (Unauthorized) vendor.js:5 Uncaught ReferenceError: Backbone is not define
Here is the npm ls --json http://pastebin.com/pj3t1VFX