Skip to content

Error when loading plugin #31

@dawsontoth

Description

@dawsontoth

I'm seeing this error in my logs, despite the plugin actually working. I'm wondering if it's loading twice, though I only have it specified once in the application I'm deploying.

Could not load application directory /Users/dawsontoth/Code/softwork-beats/node_modules/@harperfast/oauth TypeError: Cannot redefine property: upgrade
   at Object.defineProperty (<anonymous>)
   at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:134:1368
   at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:1:278
   at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:139:3514
   at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:1:310
   at Object.<anonymous> (/Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:142:1981)
   at Module._compile (node:internal/modules/cjs/loader:1761:14)
   at Object..js (node:internal/modules/cjs/loader:1893:10)
   at Module.load (node:internal/modules/cjs/loader:1481:32)
   at Module._load (node:internal/modules/cjs/loader:1300:12)

I also see this in my logs, perhaps very related, perhaps not:

[main/0] [error]: Unhandled promise rejection: Promise Promise {
 <rejected> Error: Wall profiler is already started
     at Object.start (/Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/node_modules/@datadog/pprof/out/src/time-profiler.js:69:15)
     at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:12:37063
     at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:12:37181
     at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:1:278
     at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:13:421
} reason: Error: Wall profiler is already started
   at Object.start (/Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/node_modules/@datadog/pprof/out/src/time-profiler.js:69:15)
   at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:12:37063
   at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:12:37181
   at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:1:278
   at /Users/dawsontoth/Code/softwork-beats/node_modules/harperdb/server/threads/threadServer.js:13:421

If I remove the oauth plugin, both errors disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions