[bug]: search client is permanently broken if initialized without network connectivity
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, typescript
Hướng nghiên cứu
Bắt đầu từ phần khởi tạo algoliasearch và đường đi của request initIndex/browseObjects, sau đó theo dõi cách các host bị lỗi và các lần retry được giữ lại sau request offline đầu tiên. Tái hiện chuỗi thao tác trong báo cáo và bổ sung coverage hồi quy cho thấy request browse thành công sau khi kết nối được khôi phục.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
If the search client is initialized when there is no network connectivity. It does not recover when connectivity is restored.
const searchClient = algoliasearch('algoliaAppId' , ‘algoliaApiKey’);
const sgAlgoliaIndex = searchClient.initIndex('indexname');
sgAlgoliaIndex.browseObjects…..
We re-execute the above code when connectivity is restored , however it continues to fail. We continue to get the same log output after connectivity is restored.
We get this error without a connection and then after internet connectivity is restored.
Client
Search
Version
^4.23.3
Relevant log output
{"name":"RetryError","message":"Unreachable hosts - your application id may be incorrect. If the error persists, contact [email protected].","transporterStackTrace":[{"request":{"data":"{\"query\":\"\",\"filters\":\"REMOVED",\"attributesToRetrieve\":[\"REMOVED\"]}","headers":{"x-algolia-api-key":"*****","x-algolia-application-id":"REMOVED","content-type":"application/x-www-form-urlencoded"},"method":"POST","url":"https://REMOVED-dsn.algolia.net/1/indexes/superGroups/browse?x-algolia-agent=Algolia%20for%20JavaScript%20(4.23.3)%3B%20Browser","connectTimeout":1,"responseTimeout":2},"response":{"content":"The Internet connection appears to be offline.","status":0,"isTimedOut":false},"host":{"protocol":"https","url":"REMOVED-dsn.algolia.net","accept":1},"triesLeft":3},{"request":{"data":"{\"query\":\"\",\"filters\":\"REMOVED",\"attributesToRetrieve\":[\"REMOVED\"]}","headers":{"x-algolia-api-key":"*****","x-algolia-application-id":"REMOVED","content-type":"application/x-www-form-urlencoded"},"method":"POST","url":"https://REMOVED-3.algolianet.com/1/indexes/superGroups/browse?x-algolia-agent=Algolia%20for%20JavaScript%20(4.23.3)%3B%20Browser","connectTimeout":1,"responseTimeout":2},"response":{"content":"The Internet connection appears to be offline.","status":0,"isTimedOut":false},"host":{"protocol":"https","url":"REMOVED-3.algolianet.com","accept":3},"triesLeft":2},{"request":{"data":"{\"query\":\"\",\"filters\":\"REMOVED\",\"attributesToRetrieve\":[\"REMOVED\"]}","headers":{"x-algolia-api-key":"*****","x-algolia-application-id":"REMOVED","content-type":"application/x-www-form-urlencoded"},"method":"POST","url":"https://REMOVED-1.algolianet.com/1/indexes/superGroups/browse?x-algolia-agent=Algolia%20for%20JavaScript%20(4.23.3)%3B%20Browser","connectTimeout":1,"responseTimeout":2},"response":{"content":"The Internet connection appears to be offline.","status":0,"isTimedOut":false},"host":{"protocol":"https","url":"REMOVED-1.algolianet.com","accept":3},"triesLeft":1},{"request":{"data":"{\"query\":\"\",\"filters\":\"type.type:Public AND NOT monetized:true AND summary.totalPosts>0\",\"attributesToRetrieve\":[\"publicId\"]}","headers":{"x-algolia-api-key":"*****","x-algolia-application-id":"REMOVED","content-type":"application/x-www-form-urlencoded"},"method":"POST","url":"https://REMOVED-2.algolianet.com/1/indexes/superGroups/browse?x-algolia-agent=Algolia%20for%20JavaScript%20(4.23.3)%3B%20Browser","connectTimeout":1,"responseTimeout":2},"response":{"content":"The Internet connection appears to be offline.","status":0,"isTimedOut":false},"host":{"protocol":"https","url":"REMOVED-2.algolianet.com","accept":3},"triesLeft":0}]}
- Ngôn ngữ chính
- TypeScript
- Star
- 1.4k
- Fork
- 227
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của algolia/algoliasearch-client-javascript
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
algolia/algoliasearch-client-javascript#1583 · 14 bình luận · 9 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
[bug]: Algolia JS Client cause `Bun` to crash on `Hono`Có thể làm lại được @PrevailUgah đã nhận 238 ngày trước và không có pull request nào đang mở. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
algolia/algoliasearch-client-javascript#1601 · 5 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
algolia/algoliasearch-client-javascript#1594 · 4 bình luận ·
Tất cả issue của algolia/algoliasearch-client-javascript
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
volcengine/OpenViking#8432 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
jupyterlab/eslint-plugin#178 · 2 bình luận ·
-
bug from-app needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
nightly-labs/openbot#16303 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100