Hello, While i'm trying to add criteo as a destin...
# support
b
Hello, While i'm trying to add criteo as a destination I get the following error : Failed to create destination - ["accountId must match pattern \"(^\\{\\{.\\|\\|(.)\\}\\}$)|(^env[.].+)|^[1-9]+$\""] My accountId is six digits How can I solve this issue ?
r
Can confirm I'm getting the same when trying to replicate, looks like a product issue. Following error in the console logs:
/destinations
API call returning the following error in the response for anyone in product who might need:
Copy code
{
  "message": "[\"homePageUrl must match pattern \\\"(^\\\\{\\\\{.*\\\\|\\\\|(.*)\\\\}\\\\}$)|(^env[.].+)|^(.{1,100})$\\\"\"]"
}
Repro steps: 1. Add Criteo destination 2. Connect it to a source 3. Add a valid 5 digit Criteo Account ID (any Expected: Destination gets setup Actual: An error is thrown
Copy code
{
  "message": "[\"homePageUrl must match pattern \\\"(^\\\\{\\\\{.*\\\\|\\\\|(.*)\\\\}\\\\}$)|(^env[.].+)|^(.{1,100})$\\\"\"]"
}
This is actually happening with all event based destinations it seems. Also tried with ActiveCampaign and same result
Thanks for reporting @bitter-mouse-72233! I'm sure the guys are aware this is happening because it looks like a bug with all other destinations being added too. If not just gonna tag someone to make aware here 🙂 @tall-lawyer-58398 just putting this on your radar incase you guys are not aware.
Ignore what I wrote before @bitter-mouse-72233, I was incorrect
Based on the regex in the error it seems like it should accept any combination of digits from 1 digit to 9 digits but it will however fail if your combination of digits starts with a zero(
0
). Does your accountId start with a zero(
0
)?
actually you can't have any zero's in your accountId based on that regex, not just at the beginning, does your accountId have any zero's in it?
That last part of the regex is what is important to that accountId it seems, this part:
Copy code
^[1-9]+$
TL;DR: The accountId must consist of digits between 1 and 9, you put a zero in there it will fail, you put anything other than a digit in there and it will fail
If your accountId does have a zero in it then I would check to make sure it is the accountId and not something else. If it is indeed the accountId maybe something has changed on the Criteo side and they now allow for accountId's containing zeros. If that's the case then maybe the guys on the RudderStack side can change that regex validation to allow for zeros 🙂
b
Yeah new accounts includes a 0
r
Could you please raise that as an issue here https://github.com/rudderlabs/rudder-server/issues/new?