Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
Ya estoy inscrito ¿Todavía no tienes acceso? Nuestros Planes
Solucionado (ver solución)
Solucionado
(ver solución)
1
respuesta

Caused by: retrofit2.adapter.rxjava2.HttpException: HTTP 429

Hola muy buenas tardes, me podrian ayudar con este error de codigo que me salio ejecutando mi screenmatch, y me salieron estas otras lineas de codigo muchisimas gracias por tan valiosa colaboracion.

com.theokanning.openai.OpenAiHttpException: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors. at com.theokanning.openai.service.OpenAiService.execute(OpenAiService.java:326) ~[service-0.14.0.jar:na] at com.theokanning.openai.service.OpenAiService.createCompletion(OpenAiService.java:121) ~[service-0.14.0.jar:na] at com.ALEX.screenmatch.service.CONSULTACHATGPT.OBTENERTRADUCCION(CONSULTACHATGPT.java:17) ~[classes/:na] at com.ALEX.screenmatch.model.SERIE.(SERIE.java:25) ~[classes/:na] at com.ALEX.screenmatch.PRINCIPAL.PRINCIPAL.lambda$MOSTRARSERIESBUSCADAS$0(PRINCIPAL.java:103) ~[classes/:na] at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:212) ~[na:na] at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1709) ~[na:na] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:556) ~[na:na] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:546) ~[na:na] at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[na:na] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265) ~[na:na] at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:702) ~[na:na] at com.ALEX.screenmatch.PRINCIPAL.PRINCIPAL.MOSTRARSERIESBUSCADAS(PRINCIPAL.java:104) ~[classes/:na] at com.ALEX.screenmatch.PRINCIPAL.PRINCIPAL.MUESTRAMENU(PRINCIPAL.java:55) ~[classes/:na] at com.ALEX.screenmatch.ScreenmatchApplication.run(ScreenmatchApplication.java:20) ~[classes/:na] at org.springframework.boot.SpringApplication.lambda$callRunner$5(SpringApplication.java:790) ~[spring-boot-3.3.4.jar:3.3.4] at org.springframework.util.function.ThrowingConsumer$1.acceptWithException(ThrowingConsumer.java:83) ~[spring-core-6.1.13.jar:6.1.13] at org.springframework.util.function.ThrowingConsumer.accept(ThrowingConsumer.java:60) ~[spring-core-6.1.13.jar:6.1.13] at org.springframework.util.function.ThrowingConsumer$1.accept(ThrowingConsumer.java:88) ~[spring-core-6.1.13.jar:6.1.13] at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:798) ~[spring-boot-3.3.4.jar:3.3.4] at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:789) ~[spring-boot-3.3.4.jar:3.3.4] at org.springframework.boot.SpringApplication.lambda$callRunners$3(SpringApplication.java:774) ~[spring-boot-3.3.4.jar:3.3.4] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[na:na] at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357) ~[na:na] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:557) ~[na:na] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:546) ~[na:na] at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[na:na] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[na:na] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265) ~[na:na] at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:611) ~[na:na] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:774) ~[spring-boot-3.3.4.jar:3.3.4] at org.springframework.boot.SpringApplication.run(SpringApplication.java:342) ~[spring-boot-3.3.4.jar:3.3.4] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1363) ~[spring-boot-3.3.4.jar:3.3.4] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1352) ~[spring-boot-3.3.4.jar:3.3.4] at com.ALEX.screenmatch.ScreenmatchApplication.main(ScreenmatchApplication.java:13) ~[classes/:na] Caused by: retrofit2.adapter.rxjava2.HttpException: HTTP 429 at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:57) ~[adapter-rxjava2-2.9.0.jar:na] at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:38) ~[adapter-rxjava2-2.9.0.jar:na] at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:48) ~[adapter-rxjava2-2.9.0.jar:na] at io.reactivex.Observable.subscribe(Observable.java:10151) ~[rxjava-2.0.0.jar:2.0.0] at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35) ~[adapter-rxjava2-2.9.0.jar:na] at io.reactivex.Observable.subscribe(Observable.java:10151) ~[rxjava-2.0.0.jar:2.0.0]

... 34 common frames omitted
1 respuesta
solución!

Hola.

De acuerdo a la documentación de OpenAI, el error indica que se ha consumido todos los créditos o se ha alcanzado el límite mensual del uso de la API.

Para tratar ese error podrías poner la parte donde consumes la ruta de OpenAPI (función OBTENERTRADUCCION) dentro de un bloque try-catch capturando la excepción OpenAiHttpException.