Closed julienfollow closed 2 years ago
I get same issue with v1.19.1
I got the same error.
Additional details:
2022-03-29T14:55:35.189Z [5555/22844] - warn: [plugins] Unable to load library for: nodebb-plugin-fusionauth-oidc
2022-03-29T14:55:35.190Z [5555/22844] - error: ReferenceError: settings is not defined
at Object.
Did anyone solved this issue ?
Doesn't look like it's been addressed or this project has been abandoned. I just tried installing and am receiving the same error
Thanks for the report and sorry about this!
I know we're running it for our community forum, so maybe we made changes that haven't been upstreamed. I'll take a look.
No changes I can see. It looks like we are running version 1.0.1 which is the latest version in the package.json. We are running v 1.18.6.
Is everyone here running this plugin against FusionAuth or are you running against different OIDC servers?
@mooreds I'd followed this FusionAuth article yesterday, using a fresh NodeBB install from two days prior.
@jimmiejackson414 what version of nodebb are you running?
@mooreds v1.18.6
I just merged https://github.com/FusionAuth/nodebb-plugin-fusionauth-oidc/pull/7 and made a new release. Can you please try that? I am also opening a ticket with our nodebb provider to see if they have done anything different to the plugin; will report back.
@jimmiejackson414 I diffed what we are currently running on our forum with the 1.0.2 release I just made and there are no changes. So I think that merging #7 fixed the issue. Please let me know, and I apologize for not monitoring this repo more carefully.
@mooreds When I search for the plugin, I'm still only seeing v1.0.1. Also that is totally ok, thank you for the quick responses!
Ah, my mistake. Please try now and grab 1.0.3. (That included a small upgrade to typescript required for publishing.)
Odd, I'm having issues opening localhost:9011 following that FusionAuth guide I posted earlier. I'm using v.18.6 of NodeBB, but that makes me think that it's not really an issue with this specific plugin (I haven't installed it yet).
@mooreds Finally got past that issue. Now I'm not seeing the option for "OpenID Connect" in the Plugins dropdown? I've already rebuilt and restarted nodebb, and performed several page refreshes. Is this an issue with the plugin?
I'm running the logs and seeing this issue after rebuild:
2022-06-01T22:27:22.264Z [4567/22252] - error: uncaughtException: Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
at Function.entries (<anonymous>)
at trim (/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:27:35)
at trim (/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:31:4)
at mergeSettings (/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:44:3)
at Settings.checkStructure (/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:233:3)
at Settings.<anonymous> (/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:69:9)
at /Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:103:13
at /Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/promisify.js:43:50
at processTicksAndRejections (node:internal/process/task_queues:83:21) {"date":"Wed Jun 01 2022 15:27:22 GMT-0700 (Pacific Daylight Time)","error":{},"exception":true,"os":{"loadavg":[12.40087890625,5.923828125,3.9130859375],"uptime":9922},"process":{"argv":["/usr/local/bin/node","/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/app.js"],"cwd":"/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test","execPath":"/usr/local/bin/node","gid":20,"memoryUsage":{"arrayBuffers":2276476,"external":7523923,"heapTotal":102617088,"heapUsed":77862560,"rss":170102784},"pid":22252,"uid":501,"version":"v16.13.1"},"stack":"TypeError: Cannot convert undefined or null to object\n at Function.entries (<anonymous>)\n at trim (/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:27:35)\n at trim (/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:31:4)\n at mergeSettings (/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:44:3)\n at Settings.checkStructure (/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:233:3)\n at Settings.<anonymous> (/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:69:9)\n at /Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js:103:13\n at /Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/promisify.js:43:50\n at processTicksAndRejections (node:internal/process/task_queues:83:21)","trace":[{"column":null,"file":null,"function":"Function.entries","line":null,"method":"entries","native":false},{"column":35,"file":"/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js","function":"trim","line":27,"method":null,"native":false},{"column":4,"file":"/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js","function":"trim","line":31,"method":null,"native":false},{"column":3,"file":"/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js","function":"mergeSettings","line":44,"method":null,"native":false},{"column":3,"file":"/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js","function":"Settings.checkStructure","line":233,"method":"checkStructure","native":false},{"column":9,"file":"/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js","function":null,"line":69,"method":null,"native":false},{"column":13,"file":"/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/settings.js","function":null,"line":103,"method":null,"native":false},{"column":50,"file":"/Users/jimmiejackson/Documents/repositories/gear_closet_forums_test/src/promisify.js","function":null,"line":43,"method":null,"native":false},{"column":21,"file":"node:internal/process/task_queues","function":"processTicksAndRejections","line":83,"method":null,"native":false}]}
Just a follow up question, do you know if this plugin happens to work with v2.x of NodeBB?
Never mind, I think I answered my own question. I get an error stating that the plugin isn't white listed by the NodeBB Package Manager, so I don' think it works in v2.x
@jimmiejackson414 does the error go away when you delete/disable this plugin?
Yep!
Okay. I need to set it up and debug it myself. That'll probably be a week or so from now, just because of my current schedule.
Great, thank you for the update!
Hello, I am also facing the same issue. Looks like the plugin has some issue. Even I upgraded the nodebb to version 1.19.8 and the fusionauth plugin I am using shows version 1.0.1. Any ETA for this issue?
Hi @Rnaaz . I'm trying to find time to test this out, but unfortunately this week got away from me. I aim to take a look soon, but can't commit to an ETA.
Happy to review any PRs, though :) .
Hello @mooreds, I've pushed a PR for the fix - it works when I tested it on NodeBB v1.19.1.
Pull Request #14 fixes this issue! Verified it on NodeBB v2.2.1
Hello @mooreds, I've pushed a PR for the fix - it works when I tested it on NodeBB v1.19.1.
We have also done the same and it works fine. Though We don't know if this is the correct approach. This PR works.
Thanks everyone, I just merged #14 . Thanks so much to @ThorodanBrom for submitting it. I'll push a release today.
Am going to close this issue out when that is done.
Fixed in 1.0.4
HEllo When i install ur plugin in my nodebb system, build works but not start. Just ur plugin the issue.
Any solutions ?
Thanks