dhk2 / peertube-plugin-lightning

Lightning wallet integration with peertube for monetization
GNU Affero General Public License v3.0
7 stars 0 forks source link

Installation Error: No wallet configured for system #9

Closed bleetube closed 1 year ago

bleetube commented 1 year ago

I hit this IndexError when I try to install the plugin from the admin panel. I also have to rm -r plugins/data/peertube-plugin-lightning/ to be able to try to install again. So far I've made sure to set a ⚡ln@addr.ess on my profile and on the Configuration > Finance field the way I saw it set on p2ptube.us.

Poking around I can see main.js wants something called lightning-address configured. I'm not sure how to configure that yet, but guessing it shouldn't be a show stopper either.

Installing plugin peertube-plugin-lightning.
peertube  | [blee.tube:443] 2023-03-09 16:37:49.885 info: Successful installation of plugin peertube-plugin-lightning.
peertube  | [blee.tube:443] 2023-03-09 16:37:49.886 info: Registering plugin or theme peertube-plugin-lightning.
peertube  | ⚡⚡No wallet configured for system
peertube  | [blee.tube:443] 2023-03-09 16:37:49.948 error: Cannot install plugin peertube-plugin-lightning, removing it... {
peertube  |   "err": {
peertube  |     "stack": "TypeError: Cannot read properties of undefined (reading 'indexOf')\n    at Object.register (/var/www/peertube/storage/plugins/node_modules/peertube-plugin-lightning/main.js:103:24)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)",
peertube  |     "message": "Cannot read properties of undefined (reading 'indexOf')"
peertube  |   }
peertube  | }
peertube  | [blee.tube:443] 2023-03-09 16:37:49.949 info: Uninstalling plugin peertube-plugin-lightning.
peertube  | [blee.tube:443] 2023-03-09 16:37:49.949 info: Unregister plugin peertube-plugin-lightning.
dhk2 commented 1 year ago

I hate it when trying to make a more informative error message causes everything to crash instead. I'll have this fixed in 4.1.1

dhk2 commented 1 year ago

Alright, error fixed. Created new instance and successfully installed 4.1.1

bleetube commented 1 year ago

LGTM, thank you