Skip to content

Issue with the Request spell #13

@posaidon-09

Description

@posaidon-09

i tried running the spell with the following parameters: "https://dog.ceo/api/breeds/image/random", [], "GET", {}

Image

and it gave me the following error

java.lang.IllegalArgumentException: wrong number, 0, of parameters
	at java.net.http/jdk.internal.net.http.common.Utils.newIAE(Utils.java:286)
	at java.net.http/jdk.internal.net.http.HttpRequestBuilderImpl.headers(HttpRequestBuilderImpl.java:135)
	at java.net.http/jdk.internal.net.http.HttpRequestBuilderImpl.headers(HttpRequestBuilderImpl.java:43)
	at TRANSFORMER/[email protected]/io.github.techtastic.hexweb.HTTPRequestsHandler.makeAndQueueRequest(HTTPRequestsHandler.java:22)
	at TRANSFORMER/[email protected]/io.github.techtastic.hexweb.casting.actions.spells.OpRequest.execute(OpRequest.java:24)
	at TRANSFORMER/[email protected]/at.petrak.hexcasting.api.casting.castables.ConstMediaAction$DefaultImpls.executeWithOpCount(ConstMediaAction.kt:27)
	at TRANSFORMER/[email protected]/io.github.techtastic.hexweb.casting.actions.spells.OpRequest.executeWithOpCount(OpRequest.java:14)
	at TRANSFORMER/[email protected]/at.petrak.hexcasting.api.casting.castables.ConstMediaAction$DefaultImpls.operate(ConstMediaAction.kt:38)
	at TRANSFORMER/[email protected]/io.github.techtastic.hexweb.casting.actions.spells.OpRequest.operate(OpRequest.java:14)
	at TRANSFORMER/[email protected]/at.petrak.hexcasting.api.casting.iota.PatternIota.execute(PatternIota.java:105)
	at TRANSFORMER/[email protected]/at.petrak.hexcasting.api.casting.eval.vm.CastingVM.executeInner(CastingVM.kt:129)
	at TRANSFORMER/[email protected]/at.petrak.hexcasting.api.casting.eval.vm.FrameEvaluate.evaluate(FrameEvaluate.kt:39)
	at TRANSFORMER/[email protected]/at.petrak.hexcasting.api.casting.eval.vm.CastingVM.queueExecuteAndWrapIotas(CastingVM.kt:53)
	at TRANSFORMER/[email protected]/at.petrak.hexcasting.api.casting.eval.vm.CastingVM.handler$zca000$executeIotaMacro(CastingVM.kt:616)
	at TRANSFORMER/[email protected]/at.petrak.hexcasting.api.casting.eval.vm.CastingVM.queueExecuteAndWrapIota(CastingVM.kt)
	at TRANSFORMER/[email protected]/at.petrak.hexcasting.api.casting.eval.env.StaffCastEnv.handleNewPatternOnServer(StaffCastEnv.java:118)
	at TRANSFORMER/[email protected]/at.petrak.hexcasting.common.msgs.MsgNewSpellPatternC2S.lambda$handle$0(MsgNewSpellPatternC2S.java:56)
	at TRANSFORMER/[email protected]/net.minecraft.server.TickTask.run(TickTask.java:18)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:156)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:770)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:161)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:130)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:753)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:747)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.m_18701_(BlockableEventLoop.java:139)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:733)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:665)
	at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251)
	at java.base/java.lang.Thread.run(Thread.java:840)
[14:45:59] [Render thread/INFO] [minecraft/ChatComponent]: [System] [CHAT] threw an exception (java.lang.IllegalArgumentException: wrong number, 0, of parameters). This is a bug in the mod.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions