Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug] Http process error #4309

@Alonexc

Description

@Alonexc

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Mac

EventMesh version

master

What happened

image

How to reproduce

start eventmesh
start http demo
start eventmeshmessage AsyncPublishInstance

Debug logs

2023-07-31 21:46:49,578 ERROR [eventMesh-sendMsg-1] AbstractHTTPServer(AbstractHTTPServer.java:579) - process error
java.lang.IllegalArgumentException: No enum constant org.apache.eventmesh.common.protocol.http.common.RequestCode.104
	at java.lang.Enum.valueOf(Enum.java:238) ~[?:1.8.0_311]
	at org.apache.eventmesh.common.protocol.http.common.RequestCode.valueOf(RequestCode.java:20) ~[eventmesh-common-1.9.0-release.jar:1.9.0-release]
	at org.apache.eventmesh.protocol.meshmessage.MeshMessageProtocolAdaptor.deserializeHttpProtocol(MeshMessageProtocolAdaptor.java:81) ~[eventmesh-protocol-meshmessage-1.9.0-release.jar:1.9.0-release]
	at org.apache.eventmesh.protocol.meshmessage.MeshMessageProtocolAdaptor.toCloudEvent(MeshMessageProtocolAdaptor.java:64) ~[eventmesh-protocol-meshmessage-1.9.0-release.jar:1.9.0-release]
	at org.apache.eventmesh.runtime.core.protocol.http.processor.SendAsyncMessageProcessor.processRequest(SendAsyncMessageProcessor.java:109) ~[eventmesh-runtime-1.9.0-release.jar:1.9.0-release]
	at org.apache.eventmesh.runtime.boot.AbstractHTTPServer$HTTPHandler.lambda$processEventMeshRequest$1(AbstractHTTPServer.java:564) ~[eventmesh-runtime-1.9.0-release.jar:1.9.0-release]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_311]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_311]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_311]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_311]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_311]
2023-07-31 21:46:50,338 DEBUG [StandaloneConsumerThread-1] Subscribe(Subscribe.java:55) - execute subscribe task, topic: TEST-TOPIC-HTTP-ASYNC, offset: null

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions