Receiving "ValidationError" when using Drop-In Component

I’m receiving a “ValidationError” after clicking the “Agree & Continue” button using the drop in component. I’ve creating some logging to log the outgoing request and incoming response when the component is called. Any ideas I keep receiving an “undefined” error after creating the customer? I get a successful response and the customer is successfully created, but not sure why I keep getting the undefined error.

Here is the error response I receive after submitting the customer:

2023-04-21T14:41:19.288Z [info] error {“code”:“ValidationError”,“message”:“Validation error(s) present. See embedded errors list for more details.”,“_embedded”:{“errors”:[{“code”:“Invalid”,“message”:“Invalid request. A valid custome
r link must be provided.”,“path”:“/type”,“_links”:{}}]}} {“body”:{“_embedded”:{“errors”:[{“_links”:{},“code”:“Invalid”,“message”:“Invalid request. A valid customer link must be provided.”,“path”:“/type”}]},“code”:“ValidationError”,"
message":“Validation error(s) present. See embedded errors list for more details.”},“headers”:{},“request-id”:“37674def-ae06-42c9-8b69-4320615ca7da”,“request-ip”:“::1”,“request-method”:“POST”,“request-path”:“/tokenUrl”,“status”:400}
Error: {“code”:“ValidationError”,“message”:“Validation error(s) present. See embedded errors list for more details.”,“_embedded”:{“errors”:[{“code”:“Invalid”,“message”:“Invalid request. A valid customer link must be provided.”,“path
“:”/type”,“_links”:{}}]}}

I was able to work around this issue by modifying the request.

image

Hi @daniel.cesare , thanks for posting and apologies for the inconvenience. This issue seems to be related to one that was recently raised in this thread. We should be rolling out a fix that’s backwards compatible sometime next week!

1 Like