Git Product home page Git Product logo

Comments (14)

HeyJavaBean avatar HeyJavaBean commented on June 26, 2024 2

可以重新生成一下 client 侧的代码后再试试,看起来更像是 client 客户端的包没有发送 method 名称,而不是 server 没注册上内容导致的报错

from kitex.

Marina-Sakai avatar Marina-Sakai commented on June 26, 2024 1

我已经升级了我的版本,目前我的 kitex 版本为 v0.9.2-rc1 ,但是好像仍然出现对应错误

Both client and server?

from kitex.

fan-x-ing avatar fan-x-ing commented on June 26, 2024 1

麻烦给一个完整的demo(包含server&client),我可以试试看能否复现,以便进一步排查

我使用下面这些语句来生成代码:

 kitex -module file idl/file.thrift
cd cmd
kitex -module file -service file -use file/kitex_gen ../idl/file.thrift

能否在 github 上建个项目,把idl、生成好的代码,以及你的测试 client/server 都 push 上去?

我新建的测试项目貌似没这个问题,那可能是我之前那些代码出了一些问题!这段时间打扰了!

from kitex.

Marina-Sakai avatar Marina-Sakai commented on June 26, 2024

Also, there was a bug with Mux mode and it was fixed in #1294.
Please try to upgrade kitex version >= v0.9.2-rc1 on the server side.

from kitex.

fan-x-ing avatar fan-x-ing commented on June 26, 2024

可以重新生成一下 client 侧的代码后再试试,看起来更像是 client 客户端的包没有发送 method 名称,而不是 server 没注册上内容导致的报错

重新生成?是重新生成 kitex_gen 吗,我使用这个语句生成相关代码:

kitex -module drive idl/file.thrift

生成后,依旧出现这样的错误

from kitex.

fan-x-ing avatar fan-x-ing commented on June 26, 2024

Also, there was a bug with Mux mode and it was fixed in #1294. Please try to upgrade kitex version >= v0.9.2-rc1 on the server side.

我已经升级了我的版本,目前我的 kitex 版本为 v0.9.2-rc1 ,但是好像仍然出现对应错误

from kitex.

fan-x-ing avatar fan-x-ing commented on June 26, 2024

我已经升级了我的版本,目前我的 kitex 版本为 v0.9.2-rc1 ,但是好像仍然出现对应错误

Both client and server?

yes, client and server

from kitex.

fan-x-ing avatar fan-x-ing commented on June 26, 2024

我已经升级了我的版本,目前我的 kitex 版本为 v0.9.2-rc1 ,但是好像仍然出现对应错误

Both client and server?

我现在怀疑,是我的代码生成错误了,即 kitex -module *** 这样的语句编写错误,请问是否方便为我提供正确的 单 Server 多 Service 的代码生成语句?

from kitex.

fan-x-ing avatar fan-x-ing commented on June 26, 2024

我已经升级了我的版本,目前我的 kitex 版本为 v0.9.2-rc1 ,但是好像仍然出现对应错误

Both client and server?

hello ?

from kitex.

felix021 avatar felix021 commented on June 26, 2024

我已经升级了我的版本,目前我的 kitex 版本为 v0.9.2-rc1 ,但是好像仍然出现对应错误

Both client and server?

我现在怀疑,是我的代码生成错误了,即 kitex -module *** 这样的语句编写错误,请问是否方便为我提供正确的 单 Server 多 Service 的代码生成语句?

multiservice 在代码生成上没有特殊参数

from kitex.

felix021 avatar felix021 commented on June 26, 2024

麻烦给一个完整的demo(包含server&client),我可以试试看能否复现,以便进一步排查

from kitex.

fan-x-ing avatar fan-x-ing commented on June 26, 2024

麻烦给一个完整的demo(包含server&client),我可以试试看能否复现,以便进一步排查

我预计将我的 IDL 给你,由你本地测试,如何?

namespace go file

struct AddObjectReq {}

struct AllResp {
    1: string msg
}

service FileSystem {
    AllResp OpenObject()
    AllResp AddObject()
    AllResp DelObject()
    AllResp ListObject()
    AllResp Mkdir()
}

service Storages {
    AllResp Download()
    AllResp Upload()
    AllResp Delete()
    AllResp Check()
    AllResp Head()
}

这是我在测试中预计做的一个 IDL

from kitex.

fan-x-ing avatar fan-x-ing commented on June 26, 2024

麻烦给一个完整的demo(包含server&client),我可以试试看能否复现,以便进一步排查

我使用下面这些语句来生成代码:

 kitex -module file idl/file.thrift
cd cmd
kitex -module file -service file -use file/kitex_gen ../idl/file.thrift

from kitex.

felix021 avatar felix021 commented on June 26, 2024

麻烦给一个完整的demo(包含server&client),我可以试试看能否复现,以便进一步排查

我使用下面这些语句来生成代码:

 kitex -module file idl/file.thrift
cd cmd
kitex -module file -service file -use file/kitex_gen ../idl/file.thrift

能否在 github 上建个项目,把idl、生成好的代码,以及你的测试 client/server 都 push 上去?

from kitex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.