Skip to content

Webhooks event emitter sends empty body #2836

@CryptologySAC

Description

@CryptologySAC

Expected Behavior

On a fired Webhook (e.g. transaction.applied ) I expect the body that my server receives to contain data related to the event. According to the source in the even emitter package the transaction.applied event would add transaction.data object.

Current Behavior

I receive an empty {} JSON object.

Steps to Reproduce (for bugs)

Register a Webhook and catch the data it fires.

Context

I tested with block.applied and have the same results. On V2.3. this worked fine.

4|ark-pay-server  |   headers:
4|ark-pay-server  |    { 'user-agent': 'got/9.6.0 (https://github.com/sindresorhus/got)',
4|ark-pay-server  |      authorization: 'fb4efcb2a9a0fc85f780fa50d6ea28c1',
4|ark-pay-server  |      'accept-encoding': 'gzip, deflate',
4|ark-pay-server  |      'content-length': '856',
4|ark-pay-server  |      host: '127.0.0.1:4467',
4|ark-pay-server  |      connection: 'close' },
4|ark-pay-server  |   body: {},

Your Environment

  • Version used: V2.5.7

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