I am getting this error with web_hooks, ```I[#/sel...
# talk-kratos
p
I am getting this error with web_hooks,
Copy code
I[#/selfservice/flows/registration/after] S[#/properties/selfservice/properties/flows/properties/registration/properties/after/$ref] doesn't validate with "#/definitions/selfServiceAfterRegistration"
  I[#/selfservice/flows/registration/after/hooks] S[#/definitions/selfServiceAfterRegistration/properties/hooks/$ref] doesn't validate with "#/definitions/selfServiceHooks"
    I[#/selfservice/flows/registration/after/hooks/0] S[#/definitions/selfServiceHooks/items/anyOf] anyOf failed
      I[#/selfservice/flows/registration/after/hooks/0] S[#/definitions/selfServiceHooks/items/anyOf/0/$ref] doesn't validate with "#/definitions/selfServiceWebHook"
        I[#/selfservice/flows/registration/after/hooks/0/config/response] S[#/definitions/selfServiceWebHook/properties/config/properties/response/additionalProperties] additionalProperties "parse" not allowed
make: *** [Makefile:42: start/dev] Error 1
this is my config
Copy code
registration:
      lifespan: 10m
      ui_url: <http://localhost:3000/signup>
      after:
        password:
          hooks:
            - hook: session
        hooks:
          - hook: web_hook
            config:
              url: <http://localhost:8085/organization>
              method: POST
              body: <base64://ZnVuY3Rpb24oY3R4KSB7IHVzZXJfaWQ6IGN0eC5pZGVudGl0eS5pZCB9Cg>==
              response:
                ignore: false
                parse: true
              auth:
                type: api_key
                config:
                  name: x-internal-key
                  value: REDACTED
                  in: header
The docs clearly mention, parse is a very valid verb (these are the latest docs btw) Pulled in verbatim from https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks What is going wrong here?
p
Hi @purple-beard-97222 Edit: actually just re-read it. Yeah that's strange, seems like it's not accepting the
response.parse: true
. Most likely hasn't been released yet into a version. Try the master branch? As the document states we can modify the identity through the
response.parse: true
option. This would mean, however, that your service would need to return a valid JSON response understood by Kratos.
My guess is that this error is due to the Identity schema not allowing additional properties to be set which your JSON response is trying to set. For example
Copy code
{
  "identity": {
    "traits": {
      "email": "<mailto:joe@example.org|joe@example.org>",
      "another_value": "example"
    }
  }
}
another_value
most likely doesn't exist in the identity schema and with additional values off it throws the above error.
https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks#modify-identities
p
I always thought the docs point to the latest released version?
building from master is possible but distracts from the obective of using this to accomplish my day to day tasks 😓
p
Hi @purple-beard-97222 Sorry for the confusion. The docs point to the latest on the Ory Network. The open source follows a quarterly release cycle. https://www.ory.sh/docs/open-source/commitment#binary-and-docker-releases
e
@purple-beard-97222 did you find any work around for v0.11.1? @proud-plumber-24205 is there a work around for v0.11.1?
p
nope , I am waiting for the march release 🙂