Skip to content

[bug]: UnreachableHostsException in google cloud functions #20

@cJannik

Description

@cJannik

Description

We are using this package in google cloud functions and synchronize document changes in real time on every firestore change event. When many updates come in at once or at a small time frame e.g. hundreds or thousands changes in a few seconds, our requests result in UnreachableHostException's. The function we use the most is partialUpdateObject.
We already increased the connectTimeout of the ClientOptions from the default 2 seconds to 60 seconds and implemented a custom retrying which we attempt before we rethrow the error. We can also observe this behavior sporadically at times of low traffic

Client

Search

Version

1.25.0

Relevant log output

UnreachableHostsException{errors: [AlgoliaTimeoutException{error: DioException [connection timeout]: The request connection took longer than 0:01:00.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:01:00.000000 or improve the response time of the server.}, AlgoliaTimeoutException{error: DioException [connection timeout]: The request connection took longer than 0:01:00.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:01:00.000000 or improve the response time of the server.}, AlgoliaTimeoutException{error: DioException [connection timeout]: The request connection took longer than 0:01:00.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:01:00.000000 or improve the response time of the server.}, AlgoliaTimeoutException{error: DioException [connection timeout]: The request connection took longer than 0:01:00.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:01:00.000000 or improve the response time of the server.}]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions