swagger-api / swagger-api/swagger-codegen

Set RetryPolicy in Android Volley library

Open
#5,744 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Android General: Question
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I have a problem that my swagger generated code is executing the requests twice sometimes. I think this is due to the RetryPolicy of the volley library.

Description: https://stackoverflow.com/questions/26264942/android-volley-makes-2-requests-to-the-server-when-retry-policy-is-set-to-0

Now I want to set the RetryPolicy of my swagger generated code with out changing the ApiInvoker-Class everytime after regeneration of the code. Is any possibility to accomplish that?

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 generated Android client and its ApiInvoker-Class, then review how Volley requests receive their RetryPolicy. Check the linked Stack Overflow discussion for the reported duplicate-request behavior and determine whether a regeneration-safe configuration entry point is described; done means users can set the policy without editing ApiInvoker-Class after regeneration.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
api, mobile
Issue type
Feature
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.