connectors icon indicating copy to clipboard operation
connectors copied to clipboard

Subscriptions & digests error

Open alexmartz001 opened this issue 3 years ago • 0 comments

Description

the subscription module does not work, the environment variable does not exist. the subscription variable was added and it does not send the messages.

Environment

  1. OS Ubuntu 20.04
  2. OpenCTI version: 5.3.12
  3. OpenCTI client: { e.g. frontend or python }
  4. Other environment details: docker install enviroment

Steps to create the smallest reproducible scenario:

  1. { e.g. Run ... }
  2. { e.g. Click ... }
  3. { e.g. Error ... }

logs

{"category":"APP","element":{"_index":"opencti_internal_objects-000001","base_type":"ENTITY","cron":"1-hours","entities_ids":["bf2d8f76-c7f8-4af7-9e0e-c2b7aeca23fe","8d30c124-58e0-47bc-bec2-697527e97413","4c0e88b2-b46d-42e3-a0c5-49858c396bd3"],"entity_type":"UserSubscription","filters":"{}","id":"31f055a7-2fea-4b77-923d-ce6cc248cc15","internal_id":"31f055a7-2fea-4b77-923d-ce6cc248cc15","last_run":"2022-09-23T13:13:11.067Z","name":"Noticias","options":["ENTITIES","KNOWLEDGE","CONTAINERS","TECHNICAL"],"parent_types":["Basic-Object","Internal-Object"],"sort":["usersubscription--a633823c-5893-5da1-a62e-aa0543cb7126"],"standard_id":"usersubscription--a633823c-5893-5da1-a62e-aa0543cb7126","user_id":"09377d5e-bdab-4f00-8df7-dfce56f85287"},"error":{"context":{},"message":"Cannot read properties of undefined (reading 'name')","name":"TypeError","stack":"TypeError: Cannot read properties of undefined (reading 'name')\n at /opt/opencti/build/src/domain/userSubscription.js:287:47\n at Array.map ()\n at generateDigestForSubscription (/opt/opencti/build/src/domain/userSubscription.js:287:34)\n at runMicrotasks ()\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at concurrentSend (/opt/opencti/build/src/manager/subscriptionManager.js:35:25)"},"level":"error","message":"[OPENCTI-MODULE] Subscription manager failed to generate the digest","timestamp":"2022-09-25T00:14:08.241Z","version":"5.3.12"}

alexmartz001 avatar Sep 25 '22 00:09 alexmartz001