Android Developer: `productId` argument required inconsistency
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 65/100
Línea de trabajo
The issue points to the AndroidPublisher.java file line 21976 where a precondition check on subscriptionId occurs. First, examine the generated client library structure and the API specification to understand the parameter requirement. Check if the method can be overloaded or the precondition relaxed. Running the provided code example will reproduce the error. Verify the fix by testing with a null subscriptionId as per the API docs.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
hi!
in the Android Developer API, the purchases.subscriptions.acknowledge method has a subscriptionId path parameter, which the docs specify is not required and not recommended in some scenarios (docs link).
it seems the Java client library in this repo has a non-null precondition on subscriptionId, failing the request client-side (see code). should this be updated in the generated client library, either by overloading this method or allowing null values for this param?
Environment details
google-api-services-androidpublisher version: v3-rev20260909-2.0.0 (maven central)
Code example
client.purchases()
.subscriptions()
.acknowledge(appName, null, purchaseToken, requestBody) // throws precondition error
.execute();
External references such as API reference guides
- https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions/acknowledge#path-parameters
- https://github.com/googleapis/google-api-java-client-services/blob/main/clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java#L21976
- Lenguaje dominante
- Java
- Estrellas
- 725
- Forks
- 394
- Merge medio
- 45 min
- PR fusionados (30 d)
- 240
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de googleapis/google-api-java-client-services
-
priority: p3 type: docs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
priority: p3 type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 50/100
googleapis/google-api-java-client-services#29581 · 2 comentarios ·
-
priority: p3 type: feature request
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
googleapis/google-api-java-client-services#29317 · 1 comentario ·
-
priority: p3 type: bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
googleapis/google-api-java-client-services#26505 · 7 comentarios · 1 reacción ·
-
priority: p3 type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Todos los issues de googleapis/google-api-java-client-services
Issues similares
-
executions.Query — startDate and timeRange filters are sent with inverted comparison operators Abiertoarea/plugin
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
kestra-io/plugin-kestra#190 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Add canonical URLs and a sitemap Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
apache/rocketmq-dashboard#5064 ·
-
Consent portal: creating a duplicate Purpose shows a generic error instead of "already exists" Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
wso2/dpdp-accelerator#287 ·