Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPT api timeout for one file causes crash #7

Open
gmerr3 opened this issue Oct 4, 2024 · 0 comments
Open

GPT api timeout for one file causes crash #7

gmerr3 opened this issue Oct 4, 2024 · 0 comments

Comments

@gmerr3
Copy link
Collaborator

gmerr3 commented Oct 4, 2024

Expected behavior - should simply skip the file, or increase timeout so this doesn't happen.

17:45:29.316 [main] ERROR edu.njit.jerse.automation.AsheAutomation - Error processing Java file:
java.util.concurrent.TimeoutException: null
at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960) ~[?:?]
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095) ~[?:?]
at edu.njit.jerse.ashe.llm.openai.OpenAiRequestHandler.apiResponse(OpenAiRequestHandler.java:120) ~[main/:?]
at edu.njit.jerse.ashe.llm.openai.GptApiClient.getApiResponse(GptApiClient.java:124) ~[main/:?]
at edu.njit.jerse.ashe.llm.openai.GptApiClient.fetchApiResponse(GptApiClient.java:59) ~[main/:?]
at edu.njit.jerse.ashe.utils.JavaCodeCorrector.fetchCorrectionFromModel(JavaCodeCorrector.java:202) ~[main/:?]
at edu.njit.jerse.ashe.utils.JavaCodeCorrector.fixTargetFileErrorsWithModel(JavaCodeCorrector.java:141) ~[main/:?]
at edu.njit.jerse.ashe.Ashe.run(Ashe.java:135) ~[main/:?]
at edu.njit.jerse.automation.AsheAutomation.processSingleJavaFile(AsheAutomation.java:146) ~[main/:?]
at edu.njit.jerse.automation.AsheAutomation.lambda$processAllJavaFiles$2(AsheAutomation.java:67) ~[main/:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) [?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) [?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) [?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) [?:?]
at java.util.Iterator.forEachRemaining(Iterator.java:133) [?:?]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939) [?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) [?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) [?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) [?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) [?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) [?:?]
at edu.njit.jerse.automation.AsheAutomation.processAllJavaFiles(AsheAutomation.java:64) [main/:?]
at edu.njit.jerse.automation.AsheAutomation.main(AsheAutomation.java:247) [main/:?]
Exception in thread "main" java.lang.RuntimeException: Error processing Java file:
at edu.njit.jerse.automation.AsheAutomation.lambda$processAllJavaFiles$2(AsheAutomation.java:74)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
at edu.njit.jerse.automation.AsheAutomation.processAllJavaFiles(AsheAutomation.java:64)
at edu.njit.jerse.automation.AsheAutomation.main(AsheAutomation.java:247)
Caused by: java.util.concurrent.TimeoutException
at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095)
at edu.njit.jerse.ashe.llm.openai.OpenAiRequestHandler.apiResponse(OpenAiRequestHandler.java:120)
at edu.njit.jerse.ashe.llm.openai.GptApiClient.getApiResponse(GptApiClient.java:124)
at edu.njit.jerse.ashe.llm.openai.GptApiClient.fetchApiResponse(GptApiClient.java:59)
at edu.njit.jerse.ashe.utils.JavaCodeCorrector.fetchCorrectionFromModel(JavaCodeCorrector.java:202)
at edu.njit.jerse.ashe.utils.JavaCodeCorrector.fixTargetFileErrorsWithModel(JavaCodeCorrector.java:141)
at edu.njit.jerse.ashe.Ashe.run(Ashe.java:135)
at edu.njit.jerse.automation.AsheAutomation.processSingleJavaFile(AsheAutomation.java:146)
at edu.njit.jerse.automation.AsheAutomation.lambda$processAllJavaFiles$2(AsheAutomation.java:67)
... 14 more

Task :runAsheAutomation FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant