n8n-community-node / n8n-nodes-mastodon

MIT License
17 stars 3 forks source link

Error LoggerProxy not initialized #4

Open lexoyo opened 1 year ago

lexoyo commented 1 year ago

Hello, Thank you @ETdoFresh for the great node !!! When I setup an empty workflow with just a mastodon search, it gives me an error: LoggerProxy not initialized, which I'm guessing comes form here?

Screenshot from 2023-01-02 15-16-20

NodeApiError: UNKNOWN ERROR - check the detailed error for more information
    at Object.mastodonApiRequest (/root/.n8n/nodes/node_modules/n8n-nodes-mastodon/nodes/Mastodon/Mastodon_Methods.ts:187:9)
    at Object.search (/root/.n8n/nodes/node_modules/n8n-nodes-mastodon/nodes/Mastodon/Mastodon_Methods.ts:118:36)
    at Object.execute (/root/.n8n/nodes/node_modules/n8n-nodes-mastodon/nodes/Mastodon/Mastodon_Methods.ts:25:42)
    at Object.execute (/root/.n8n/nodes/node_modules/n8n-nodes-mastodon/nodes/Mastodon/Mastodon.node.ts:41:48)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:658:51)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:585:68
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Let me know if I can help fix this bug, and if it is even a bug? Thanks again!

ETdoFresh commented 1 year ago

Hey, I'll take a look next week. Will be back from vacation then.

lexoyo commented 1 year ago

Hello @ETdoFresh Maybe I can look into it? You have pointers? Have a nice day, thank you for your work

ETdoFresh commented 1 year ago

Just looking into the issues now. I'll write back in a bit to tell you what I find out. Stand by! :)

ETdoFresh commented 1 year ago

Hmm. IDK! I just ran on mine... and this is what I see... looks almost identical to what you have. I don't really know the Mastodon URLs out there... but maybe perhaps remove the backslash (/) from the end of the url? Let me know if that does anything? image

ETdoFresh commented 1 year ago

~Wait, you gave me some much context and I missed it... sorry... being totally blind! I'll remove the LoggerProxy and publish another version up.~

ETdoFresh commented 1 year ago

Well OK... now I'm back tracking a bit. I have the Logger to log out important debug information if needed. I want to keep it so users can see what data is being sent out if they set their logging level to debug. Not exactly sure why you don't have LoggerProxy in your "n8n-workflow" instance.

lexoyo commented 1 year ago

I don't know either :-/

I use the latest docker image, automatically installed with https://coolify.io/

I should check the env vars maybe

lexoyo commented 1 year ago

Here is the Docker image i use 0.210.1

Here are the env vars I use https://github.com/lexoyo/n8n-docker-compose/blob/main/docker-compose.yml

I don't see anything suspicious :-/

benborges commented 1 year ago

Very odd, I use Cloudron to run N8N, I have the latest N8N version but on 1 N8N instance with the same Mastodon node module I don't have any issue and on another, same infrastructure, same version, I have this error.

NodeApiError: UNKNOWN ERROR - check the detailed error for more information at Object.mastodonApiRequest (/app/data/user/.n8n/nodes/node_modules/n8n-nodes-mastodon/nodes/Mastodon/Mastodon_Methods.ts:195:9) at Object.create (/app/data/user/.n8n/nodes/node_modules/n8n-nodes-mastodon/nodes/Mastodon/Mastodon_Methods.ts:88:35) at Object.execute (/app/data/user/.n8n/nodes/node_modules/n8n-nodes-mastodon/nodes/Mastodon/Mastodon_Methods.ts:19:42) at Object.execute (/app/data/user/.n8n/nodes/node_modules/n8n-nodes-mastodon/nodes/Mastodon/Mastodon.node.ts:41:48) at Workflow.runNode (/app/code/node_modules/n8n-workflow/src/Workflow.ts:1270:42) at /app/code/node_modules/n8n-core/src/WorkflowExecute.ts:938:44 at processTicksAndRejections (node:internal/process/task_queues:95:5)

lexoyo commented 1 year ago

I don't see the "LoggerProxy not initialized" error in your logs, am I missing something or is it a different error?

benborges commented 1 year ago

My bad, I copied the stack trace and forgot to add :

Also asked about this on N8N forum : https://community.n8n.io/t/0-159-1-loggerproxy-not-initialized/10768/4

image

jakevis commented 1 year ago

https://github.com/n8n-io/n8n/issues/5721

Seems that this has been IDed as larger issue maybe

bartv42 commented 1 year ago

I'm running into the same issue. Did anyone manage to resolve this?

rmdes commented 1 year ago

Having the same issue since 2 weeks LoggerProxy not initialized on Version 0.228.2

rmdes commented 1 year ago

This is still ongoing, rendering this node not usable for now :/