Stack trace on one of my endpoints
See original GitHub issueAs soon as cats starts up against one of my endpoints, it blows up:
[********* ][*****] ▶ start Start fuzzing path /v1/my/endpointl
[********* ][*****] ✖ error Something went wrong while running CATS!
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 14
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
at java.base/java.lang.String.substring(String.java:1874)
at com.endava.cats.model.factory.FuzzingDataFactory.lambda$addNewCombination$9(FuzzingDataFactory.java:320)
at java.base/java.util.HashMap.forEach(HashMap.java:1336)
at com.endava.cats.model.factory.FuzzingDataFactory.addNewCombination(FuzzingDataFactory.java:318)
at com.endava.cats.model.factory.FuzzingDataFactory.getPayloadCombinationsBasedOnOneOfAndAnyOf(FuzzingDataFactory.java:305)
at com.endava.cats.model.factory.FuzzingDataFactory.generateSample(FuzzingDataFactory.java:289)
at com.endava.cats.model.factory.FuzzingDataFactory.getResponsePayloads(FuzzingDataFactory.java:441)
at com.endava.cats.model.factory.FuzzingDataFactory.getFuzzDataForNonBodyMethods(FuzzingDataFactory.java:110)
at com.endava.cats.model.factory.FuzzingDataFactory.getFuzzingDataForGet(FuzzingDataFactory.java:87)
at com.endava.cats.model.factory.FuzzingDataFactory.fromPathItem(FuzzingDataFactory.java:72)
at com.endava.cats.CatsMain.fuzzPath(CatsMain.java:360)
at com.endava.cats.CatsMain.startFuzzing(CatsMain.java:174)
at com.endava.cats.CatsMain.doLogic(CatsMain.java:165)
at com.endava.cats.CatsMain.run(CatsMain.java:143)
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:819)
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:803)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:346)
at com.endava.cats.CatsMain.main(CatsMain.java:102)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
My API does not throw any errors when this happens. Suggestions for what might cause this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (7 by maintainers)
Top Results From Across the Web
Debug information | Error Stack Trace | Google Endpoints
I have a few endpoints on google cloud. I deployed one more by copying my existing one and changed name and logic.
Read more >Stack Trace: How to Debug Your Application With a Stack Trace
A stack trace is a valuable piece of information that can be used for debugging purposes. Whenever you encounter an error in your...
Read more >Stack Tracing - FusionReactor Documentation
The stack trace consists of single frames and each frame shows the class, method and (if available) line number of the code which...
Read more >View stack trace separately from messages in logged ...
The stack trace is now separated from logged messages in logging records so that log analysis tools can present them more clearly.
Read more >Google cloud endpoint error in production, no stack trace
Is there a setting somewhere to enable? My google cloud endpoint works fine on local, but gives error on production. I am not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll see what I can do.
Excellent! Thanks! I can confirm the NPE is gone. Now I’ll go back to building my example to see if I can get that IndexOutOfBounds exeception again so we have an example demonstrating the issue. This may take me a couple of days because I have a very full schedule for the next few days.