Webhook for graphql mutation not working

I have…

  • Read the following guideline: Troubleshooting and Support | Squidex. I understand that my support request might get deleted if I do not follow the guideline.
  • Used code blocks with ``` to format my code examples like JSON or logs properly.

I’m submitting a…

  • Regression (a behavior that stopped working in a new release)
  • Bug report
  • Performance issue
  • Documentation issue or request

Current behavior

I created webhook rules for GraphQL mutation, in response getting below error. I checked rules log it shows status success. But it’s not created record and give below error in response.

{“errors”:[{“message”:“Error in $: Failed reading: not a valid json value at ‘mutationMyMutation{’”,“extensions”:{“path”:“$”,“code”:“invalid-json”}}]}

Same data I tried with postman and it working as expected.

Expected behavior

It should create record & return create record data in json.

Minimal reproduction of the problem

Environment

App Name:

  • Self hosted with docker
  • Self hosted with IIS
  • Self hosted with other version
  • Cloud version

Version: [VERSION]

Browser:

  • Chrome (desktop)
  • Chrome (Android)
  • Chrome (iOS)
  • Firefox
  • Safari (desktop)
  • Safari (iOS)
  • IE
  • Edge

Others:
If you want to refer the configuration.
appname: Map
rule name is: hasura-create-record

It is probably a code problem. I would need to see some code that.

1 Like