n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
47.7k stars 7.26k forks source link

Problem loading data Cannot read properties of null (reading 'data') #5710

Closed gw123 closed 1 year ago

gw123 commented 1 year ago

Describe the bug Problem loading data Cannot read properties of null (reading 'data') image

To Reproduce

  1. a workflow has a kafka trigger and a 60s http request node 。
  2. kafka trigger with 30 message pre second
  3. open the Executions
  4. than i get that error Cannot read properties of null (reading 'data')

env: databasetype : mysql n8n commit_id: 26b69b5ffc308185b82d50b9cb0239f7ea9e55f9 EXECUTIONS_PROCESS: main EXECUTIONS_MODE: queue DB_TYPE: mysqldb

janober commented 1 year ago

Thank you for reporting this. It looks like there is a problem with the image you added, it does not get displayed. Additionally did also most fields of the issue template got deleted instead of filled. Can you please make sure to add those so that we can get started on looking into that issue. Thanks!

gw123 commented 1 year ago

of course

Joffcom commented 1 year ago

Hey @gw123,

Don't forget the rest of the template fields, It is always handy to know what version of n8n is being used, How it is running and which database is in use.

gw123 commented 1 year ago

i run n8n with this env:

n8n commit_id: https://github.com/n8n-io/n8n/commit/26b69b5ffc308185b82d50b9cb0239f7ea9e55f9 EXECUTIONS_PROCESS: main EXECUTIONS_MODE: queue DB_TYPE: mysqldb

janober commented 1 year ago

So do I understand it correctly that you are building your own n8n version with changes rather than using a version we release?

gw123 commented 1 year ago

I found some bug on srouce code:

image

const currentJobs = await queue.getJobs(['active', 'waiting']); currentJobs has some null undefined, that cause the error " Cannot read properties of null (reading 'data')" executingWorkflowIds.push(...currentJobs.map(({ data }) => data.executionId));

gw123 commented 1 year ago

So do I understand it correctly that you are building your own n8n version with changes rather than using a version we release?

yes , I just add some kafka with backpress trigger node .

Joffcom commented 1 year ago

Hey @gw123,

I have not seen any other reports of this issue so for now I am going to mark this as closed, If you are still seeing this on the latest version of n8n using our image let me know and I will open it again.