framely / community

MIT License
0 stars 2 forks source link

[Bug]: get error on Messsenger channel after modified intent name #663

Closed Zeng666666 closed 1 year ago

Zeng666666 commented 2 years ago

Is there an existing issue for this?

Make sure you are using Framely on Google Chrome!

Current Behavior

chatbot PingPongUS 原本来在 try it now、GBM、Messenger 都 work 的,后来因为需要修改了 intent name,把 intent ImageCard 改成了 intent AboutUs:

image

deploy 之后在 try it now、GBM 都可以 work:

image

在 Messenger 就不 work 了:

image

log 中显示找不到 me.quickstart.PingPongUS.ImageCard,可是这个已经被改掉了?

2022-09-07 10:07:48,126 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-0) HTTP Request to /org/me.quickstart/bot/PingPongUS/c/messenger/v1/facebookFramely/en failed, error id: ed8d50cf-7ae3-4acf-97b0-a39e27b944a9-1: org.jboss.resteasy.spi.UnhandledException: java.lang.ClassNotFoundException: me.quickstart.PingPongUS.ImageCard
    at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:105)
    at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:359)
    at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:218)
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:519)
    at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261)
    at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161)
    at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
    at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164)
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247)
    at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:73)
    at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:151)
    at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:91)
    at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:548)
    at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
    at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
    at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: me.quickstart.PingPongUS.ImageCard

Expected Behavior

应该都可以正常 work

Use Case

/

Steps To Reproduce

/

Label of org.project

me.quickstart.PingPongUS

Framely Link

https://build.framely.ai/org/6284c6f1d3c0469ed06d423c/agent/62f4ba52b27d10fbb48b944e/version

Test Case

No response

Additional information

No response

Zeng666666 commented 2 years ago

为了看这个问题能不能复现,我又把 intent name 从 AboutUs 改回了 ImageCard,这回 Messenger 可以 work 了,但 GBM 报错说没有 me.quickstart.PingPongUS.AboutUs

2022-09-07 10:35:48,162 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-0) HTTP Request to /org/me.quickstart/bot/PingPongUS/c/gbm/v1/simple/en failed, error id: 53232a64-488a-4bfa-af7a-381c1f478f91-33: org.jboss.resteasy.spi.UnhandledException: java.lang.ClassNotFoundException: me.quickstart.PingPongUS.AboutUs
    at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:105)
    at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:359)
    at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:218)
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:519)
    at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:261)
    at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:161)
    at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
    at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:164)
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:247)
    at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:73)
    at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:151)
    at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler$1.run(VertxRequestHandler.java:91)
    at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:548)
    at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
    at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
    at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: me.quickstart.PingPongUS.AboutUs
hisunnymay commented 2 years ago

仅测试在 Messenger 上做了测试,目前能得出的结论是:

目前的结论还不能解释当前的现象,还需要测试 gbm 中的表现 详见: Tests on Messenger about sessions

xiaoyunwu commented 2 years ago

this should be solved by versioning.

On Fri, Sep 9, 2022 at 2:33 AM ChangMei @.***> wrote:

仅测试在 Messenger 上做了测试,目前能得出的结论是:

  • 在 Messenger中,只有在 session 中被触发过 intent 修改名字后 deploy,给 messenger 发送消息才会报错,导致 messenger 不会输出消息

目前的结论还不能解释当前的现象,还需要测试 gbm 中的表现 详见: Tests on Messenger about sessions https://naturali-io.feishu.cn/docx/doxcnHbMAR8pAlEyzngwFknG3rh

— Reply to this email directly, view it on GitHub https://github.com/framely/community/issues/663#issuecomment-1241739525, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJYKUJUEK6ENWUZITGWEQLV5L77ZANCNFSM6AAAAAAQGUBUWM . You are receiving this because you were assigned.Message ID: @.***>

Zeng666666 commented 2 years ago

那现在不知道是哪个版本应该?

14:00:15.879 [http-nio-8080-exec-2] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.ClassNotFoundException: me.quickstart.PingPongUS.AboutFramely] with root cause
java.lang.ClassNotFoundException: me.quickstart.PingPongUS.AboutFramely
Zeng666666 commented 2 years ago

补充新的 log:

06:54:17.750 [http-nio-8080-exec-5] INFO  io.framely.channels.GBMResource - got body: {"message":{"name":"conversations/58583270-127b-4e03-ba27-8a863b70c875/messages/F3B41B2D-00F4-4B0E-96B6-7C537CFBE4EE","text":"hi","createTime":"2022-09-13T06:53:56.380614Z","messageId":"F3B41B2D-00F4-4B0E-96B6-7C537CFBE4EE"},"context":{"placeId":"","userInfo":{"displayName":"lu zeng","userDeviceLocale":"zh-Hant-HK"},"resolvedLocale":"en"},"sendTime":"2022-09-13T06:53:57.206517Z","conversationId":"58583270-127b-4e03-ba27-8a863b70c875","requestId":"F3B41B2D-00F4-4B0E-96B6-7C537CFBE4EE","agent":"brands/6cac982e-5542-43cf-a891-ae677dbefa2f/agents/830193f0-ada6-4c11-925d-bed55dcd5237"}
java.lang.ClassNotFoundException: me.quickstart.PingPongUS.AboutUs

Full log: log_gbm_issue663_0913.txt

Zeng666666 commented 2 years ago

@xiaoyunwu 第一次修改 intent label 是可以 work 的。但我又修改了一次 intent label,就不 work 了,log 和之前好像是一样的

03:58:52.584 [http-nio-8080-exec-9] INFO  io.framely.channels.GBMResource - got body: {"message":{"name":"conversations/58583270-127b-4e03-ba27-8a863b70c875/messages/AA10D79C-3317-44A8-A676-E4802161923E","text":"hi","createTime":"2022-09-14T03:58:15.702812Z","messageId":"AA10D79C-3317-44A8-A676-E4802161923E"},"context":{"placeId":"","userInfo":{"displayName":"lu zeng","userDeviceLocale":"zh-Hant-HK"},"resolvedLocale":"en"},"sendTime":"2022-09-14T03:58:16.517874Z","conversationId":"58583270-127b-4e03-ba27-8a863b70c875","requestId":"AA10D79C-3317-44A8-A676-E4802161923E","agent":"brands/6cac982e-5542-43cf-a891-ae677dbefa2f/agents/830193f0-ada6-4c11-925d-bed55dcd5237"}
java.lang.ClassNotFoundException: me.quickstart.PingPongUS.WhatIsFramely
Zeng666666 commented 1 year ago

checked