Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • grounditem price


    awad87

    Recommended Posts

    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

    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

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.