dealing with indexation errors "json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded "
还没有人认领这个 Issue。
评估
调研方向
从 algolia/algoliasearch-client-php/lib/RetryStrategy/ApiWrapper.php 的第 71 行附近开始,检查 $this->jsonOptions 在索引编制过程中是如何使用的。复现格式错误的 UTF-8 导致的 json_encode 失败,然后验证所选择的处理方式能够避免报告的错误,同时保留预期的索引编制行为。
由索引模型根据 Issue 内容生成。
描述
I have had to force usage of JSON_INVALID_UTF8_IGNORE as part of $this->jsonOptions in order to deal with data possibly faulty data content to index.
Without this option, I was sometimes getting errors during indexation json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded
I did it in algolia/algoliasearch-client-php/lib/RetryStrategy/ApiWrapper.php, line 71 (latest PHP client 4.33)
I believe this should myabe added as a default option or made optional somewhere.
- 主要语言
- PHP
- 星标
- 696
- 派生
- 111
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
algolia/algoliasearch-client-php 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
-
[bug]: Please tag a new major version when introducing BC breaks可能重新可做 @Fluf22 于 216 天前认领,目前没有进行中的 PR。 未关闭
algolia/algoliasearch-client-php#760 · 5 条评论 · 1 个 reaction · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 35/100
-
[bug]: Use enums未关闭
难度 2/5 1-3 小时 新手友好度 45/100
algolia/algoliasearch-client-php#748 · 1 条评论 ·
-
[bug]: BC Break starting v4.10.0 for batch operations in SearchClient可能重新可做 @damcou 于 680 天前认领,目前没有进行中的 PR。 未关闭
algolia/algoliasearch-client-php#744 · 2 条评论 · 已指派 1 人 ·
查看 algolia/algoliasearch-client-php 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 63/100
phpstan/phpstan-phpunit#361 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
HE-Arc/le-panier-du-coin#49 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 2 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 65/100
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
LinkNacional/woo-rede#367 ·