awad87 1 Share Posted January 25, 2022 i try to get ground item price before looting i use this : looting = groundItem -> groundItem != null && groundItem.exists() && groundItem.isOnScreen() && groundItem.canReach() && groundItem.hasAction("Take") && (PriceFetcher.getPricedItem(groundItem.getID()).getShopPrice()>200 || groundItem.getName().contains("Big") || groundItem.getName().contains("key")); and i get this error : 2022-01-25 02:32:14 [ERROR] Exception has occurred while running! Please report error to developer if problem persists com.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 159691 path $.26054.name at com.google.gson.internal.Streams.parse(Streams.java) at com.google.gson.JsonParser.parseReader(JsonParser.java) at com.google.gson.JsonParser.parseReader(JsonParser.java) at com.google.gson.JsonParser.parseString(JsonParser.java) at PriceFetcher.getPricedItem(PriceFetcher.java:22) at Main.lambda$fight_Hill$148(Main.java:2453) at org.dreambot.api.methods.item.GroundItems.lambda$all$0(GroundItems.java) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) at org.dreambot.api.methods.item.GroundItems.all(GroundItems.java) at org.dreambot.api.methods.item.GroundItems.closest(GroundItems.java) at Main.fight_Hill(Main.java:2461) at Main.fight(Main.java:2374) at Main.onLoop(Main.java:454) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.EOFException: End of input at line 1 column 159691 path $.26054.name at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java) at com.google.gson.stream.JsonReader.doPeek(JsonReader.java) at com.google.gson.stream.JsonReader.peek(JsonReader.java) at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java) at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java) at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java) at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java) ... 21 more PriceFetcher.java Link to comment Share on other sites More sharing options...
camelCase 220 Share Posted January 25, 2022 8 hours ago, awad87 said: PriceFetcher.getPricedItem the error is relating to whatever you wrote to get the item price, dreambot has a class LivePrices that does the same thing. you should probably just use that Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.