I have…
- [X] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there.
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [X] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
Current behavior
I’m trying the “Content changed” rule to populate the Algolia index but I’m facing some issues. The rule is like:
And the configuration of “Populate Algolia index”:
When the rule is run, this error is thrown:
Expected behavior
The rule is executed without errors and the content is created in Algolia.
Minimal reproduction of the problem
- Having an Algolia instance up and running.
- Having a “Content changed” rule configured with the action “Populate Algolia index”.
- Configure the Application Id, API key and index name in this action.
Environment
- [ ] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [X] Cloud version
Version: [VERSION]
Browser:
- [X] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others:
When the rule is executed form the simulator, it seems to work:
Also, I’m not sure whether an explicit JSON transformation is needed in the “Document” configuration section in the “Populate Algolia index” action, something like:
JSON.stringify(
{
"id": "$event.data.id.iv"
}
);