uber / uber/rides-android-sdk

GET "time" returns TimeEstimatesResponse containing empty arraylist (TimeEstimate)

Open
#79 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
293
Forks
132
PR merge metrics
No merged PRs in 30d

Description

Sometimes the following api returns empty array list (timeEstimatesResponse.getTimes().size() returns 0) even if Uber service is available at the selected location.

@GET("/v1/estimates/time")
    Call<TimeEstimatesResponse> getPickupTimeEstimate(@Query("start_latitude") float var1, @Query("start_longitude") float var2, @Nullable @Query("product_id") String var3);

Is it a bug? What could be the reason? Any help would be highly appreciated!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the GET /v1/estimates/time call and the TimeEstimatesResponse.getTimes() result shown in the report. Reproduce the request at a location where Uber service is available, then determine why the response can contain an empty list and document or fix the behavior with a verifiable result.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
api, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.