Skip to content

[Question]: Get the timeUntilReset #158

Open
@starshipcoder

Description

@starshipcoder

Please check the following before submitting a new issue.

  • I have searched the existing issues.
    I have carefully read the documentation.

Please select for which platform(s) you need help

  • Android
    iOS

Your question

Hi

I get this error in my log when too many request

[GEOXPC] Throttled "PlaceRequest.REQUEST_TYPE_GEOCODING" request: Tried to make more than 50 requests in 60 seconds, will reset in 1 seconds - Error Domain=GEOErrorDomain Code=-3 "(null)" UserInfo={details=(
{
intervalType = short;
maxRequests = 50;
"throttler.keyPath" = "app:com.starshipcoder.contactonmap/0x20302/short(default/any)";
timeUntilReset = 1;
windowSize = 60;
}
), requestKindString=PlaceRequest.REQUEST_TYPE_GEOCODING, timeUntilReset=1, requestKind=770}

Is there a way to get the timeUntilRequest ?

Regards

Version

2.0.1

Activity

added
platform: iosIssue is related to the iOS platform
P2Important issues not at the top of the work list.
on Jul 12, 2023
mvanbeusekom

mvanbeusekom commented on Jul 12, 2023

@mvanbeusekom
Member

Hi @starshipcoder,

Thanks for raising this issue. At the moment it is not possible to access the timeUntilReset parameter. We are however planning to refactor the geocoding plugin exposing the native APIs instead of only a cross-platform abstraction. This should allow us to also expose a more detailed error object on iOS which in turn can expose the timeUntilReset parameter.

This however is not something that we'll release short term. I will leave this issue open so we are able to track progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work list.platform: iosIssue is related to the iOS platformtype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      [Question]: Get the timeUntilReset · Issue #158 · Baseflow/flutter-geocoding