I don't think it's possible to recover from an unhandledException, the plugin needs to check the post object to make sure it's not undefined. Or needs to wrap that part of the code in a try/catch.
Cannot access »nodebb-plugin-write-api« plugin settings
System: Ubuntu 18.04 (LTS) x86_64. Fresh install of current
> node -v && npm -v v12.16.3 6.14.4
Plugin »nodebb-plugin-write-api« had been installed and activated. After nodebb daemon restart hitting »PLUGINS --> WriteAPI« as user admin directs to
https://hostname/admin/plugins/write-apidisplaying a wait indicating spinner before eventually showing:
This page isn’t working localhost didn’t send any data. ERR_EMPTY_RESPONSE
In case of not waiting for a timeout but reloading the web page
(node:28884) UnhandledPromiseRejectionWarning: Error: Failed to lookup view "admin/plugins/write-api" in views directory "/home/goik/tmp/nodebb/build/public/templates" at Function.render (/home/goik/tmp/nodebb/node_modules/express/lib/application.js:580:17) at ServerResponse.render (/home/goik/tmp/nodebb/node_modules/express/lib/response.js:1012:7) at /home/goik/tmp/nodebb/src/middleware/render.js:63:83 at internal/util.js:297:30 at new Promise (<anonymous>) at internal/util.js:296:12 at ServerResponse.renderOverride [as render] (/home/goik/tmp/nodebb/src/middleware/render.js:67:14) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5)
I also repeated the exact same installation steps on a second Ubuntu 20.04 workstation host leading to exactly the same result.
I found https://community.nodebb.org/topic/10026/nodebb-plugin-write-api-failing-to-load-admin-page solving the issue.