CC007 / HeadSweeper

This is a minesweeper implementation for minecraft using the HeadsPlugin API and the MCSweeper API
MIT License
0 stars 0 forks source link

404 error on freshcoal #7

Closed SlimeDog closed 1 year ago

SlimeDog commented 1 year ago

and HeadSweeper is disabled.

>version head
[06:43:36] [Server thread/INFO]: HeadsPluginAPI version 3.1.0
[06:43:36] [Server thread/INFO]: The base heads API for other plugins to use
[06:43:36] [Server thread/INFO]: Author: Rik Schaaf aka CC007 (http://coolcat007.nl/)
[06:43:36] [Server thread/INFO]: HeadSweeper version 1.7.3
[06:43:36] [Server thread/INFO]: Spawn in heads as block
[06:43:36] [Server thread/INFO]: 
[06:43:36] [Server thread/INFO]: Website: http://coolcat007.nl/
[06:43:36] [Server thread/INFO]: Author: CC007
[06:43:36] [Server thread/INFO]: HeadsInventory version 1.11.1
[06:43:36] [Server thread/INFO]: Search for heads in the 
[06:43:36] [Server thread/INFO]: 
[06:43:36] [Server thread/INFO]: Author: Rik Schaaf aka CC007 (http://coolcat007.nl/)

HeadsPluginAPI/config.yml (note that freshcoal is disabled)

# used for new version detection
version: 3.1.0

headsplugin:
  # define which heads database should be enabled.
  provider:
    freshcoal: false
    mineskin: true
    minecraftHeads: true
  suppressHttpClientErrors: true
  search:
    update:
      # search update interval in minutes
      interval: 1440 # 1 day
  categories:
    update:
      # category update interval in hours
      interval: 168 # 1 week
    # define your custom categories here
    custom: []

profiler:
  defaultLogLevel: DEBUG

database:
  chunkSize: 500
[06:26:44] [Server thread/INFO]: [HeadSweeper] Enabling HeadSweeper v1.7.3
[06:26:44] [Server thread/INFO]: [HeadSweeper] Check if data folder exists...
[06:26:44] [Server thread/INFO]: [HeadSweeper] Data folder already exists
[06:26:44] [Server thread/INFO]: [HeadSweeper] Initializing minesweeper heads...
[06:26:45] [Server thread/ERROR]: Error occurred while enabling HeadSweeper v1.7.3 (Is it up to date?)
feign.FeignException$NotFound: [404 Not Found] during [GET] to [https://freshcoal.com/api.php?query=Minesweeper] [FreshCoalClient#find(String)]: [No input file specified.
]
        at feign.FeignException.clientErrorStatus(FeignException.java:201) ~[HeadsPluginAPI-3.1.0.jar:?]
        at feign.FeignException.errorStatus(FeignException.java:177) ~[HeadsPluginAPI-3.1.0.jar:?]
        at feign.FeignException.errorStatus(FeignException.java:169) ~[HeadsPluginAPI-3.1.0.jar:?]
        at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:92) ~[HeadsPluginAPI-3.1.0.jar:?]
        at feign.AsyncResponseHandler.handleResponse(AsyncResponseHandler.java:96) ~[HeadsPluginAPI-3.1.0.jar:?]
        at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:138) ~[HeadsPluginAPI-3.1.0.jar:?]
        at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:89) ~[HeadsPluginAPI-3.1.0.jar:?]
        at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:100) ~[HeadsPluginAPI-3.1.0.jar:?]
        at jdk.proxy14.$Proxy115.find(Unknown Source) ~[?:?]
        at com.github.cc007.headsplugin.integration.daos.FreshCoalDao.getHeads(FreshCoalDao.java:77) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.business.services.heads.HeadSearcherImpl.lambda$requestHeads$4(HeadSearcherImpl.java:124) ~[HeadsPluginAPI-3.1.0.jar:?]
        at java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180) ~[?:?]
        at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:?]
        at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1715) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
        at com.github.cc007.headsplugin.business.services.heads.HeadSearcherImpl.requestHeads(HeadSearcherImpl.java:122) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.business.services.heads.HeadSearcherImpl.updateHeadsIfNecessary(HeadSearcherImpl.java:91) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.business.services.heads.HeadSearcherImpl.lambda$getHeads$2(HeadSearcherImpl.java:73) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.integration.database.transaction.jpa.JpaNestableTransaction.lambda$runTransacted$2(JpaNestableTransaction.java:71) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.integration.database.transaction.jpa.JpaNestableTransaction.runTransacted(JpaNestableTransaction.java:108) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.integration.database.transaction.jpa.JpaNestableTransaction.runTransacted(JpaNestableTransaction.java:69) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.integration.database.transaction.jpa.JpaNestableTransaction.runTransacted(JpaNestableTransaction.java:48) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.business.services.heads.HeadSearcherImpl.lambda$getHeads$3(HeadSearcherImpl.java:71) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.business.services.ProfilerImpl.lambda$runProfiled$0(ProfilerImpl.java:41) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.business.services.ProfilerImpl.runProfiled(ProfilerImpl.java:64) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.business.services.ProfilerImpl.runProfiled(ProfilerImpl.java:41) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsplugin.business.services.heads.HeadSearcherImpl.getHeads(HeadSearcherImpl.java:70) ~[HeadsPluginAPI-3.1.0.jar:?]
        at com.github.cc007.headsweeper.HeadSweeper.initHeads(HeadSweeper.java:241) ~[HeadSweeper-1.7.3.jar:?]
        at com.github.cc007.headsweeper.HeadSweeper.onEnable(HeadSweeper.java:86) ~[HeadSweeper-1.7.3.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot-api-1.19.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) ~[spigot-api-1.19.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) ~[spigot-api-1.19.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugin(CraftServer.java:533) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3684-Spigot-41150f3-f770708]
        at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugins(CraftServer.java:447) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3684-Spigot-41150f3-f770708]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:589) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3684-Spigot-41150f3-f770708]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:414) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3684-Spigot-41150f3-f770708]
        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:250) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3684-Spigot-41150f3-f770708]
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:975) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3684-Spigot-41150f3-f770708]
        at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) ~[spigot-1.19.4-R0.1-SNAPSHOT.jar:3684-Spigot-41150f3-f770708]
        at java.lang.Thread.run(Thread.java:1589) ~[?:?]
CC007 commented 1 year ago

This seems to be an error for HeadsPluginAPI in general

CC007 commented 1 year ago

Moved to https://github.com/CC007/HeadsPluginAPI/issues/28

CC007 commented 1 year ago

release candidate fix: https://we.tl/t-zL821kwHkg

This not only handles the 404 error better, but also actually disables head databases when headsplugin.provider.<head db name> is set to false. This was a feature from 2.x that wasn't implemented yet in 3.x, but it should now work.

SlimeDog commented 1 year ago

Both things work, confirmed on Spigot 1.19.4-3692 and Paper 1.19.4-466. Thanks.