You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The personalizationClient expects the properties eventScoring and facetScoring whereas the underlying API expects the pluralised eventsScoring and facetsScoring.
Description
API docs: https://www.algolia.com/doc/libraries/javascript/v5/methods/personalization/set-personalization-strategy/?client=javascript
The following request will fail:
The
personalizationClient
expects the propertieseventScoring
andfacetScoring
whereas the underlying API expects the pluralisedeventsScoring
andfacetsScoring
.The API docs also incorrectly use the non plural property names https://www.algolia.com/doc/rest-api/personalization/#tag/strategies
Client
Personalization
Version
5.18.0
Relevant log output
ApiError: Unknown field "eventScoring" at deserializeFailure (node_modules/@algolia/client-common/src/transporter/helpers.ts:91:12) at retry (node_modules/@algolia/client-common/src/transporter/createTransporter.ts:194:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at async run (src/scripts/configure-algolia-personalisation.ts:64:22) { stackTrace: [ { request: [Object], response: [Object], host: [Object], triesLeft: 0 } ], status: 422 }
The text was updated successfully, but these errors were encountered: