Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Missing 'proposalResponses' parameter in transaction request" #162

Open
JessKXWL opened this issue Feb 18, 2022 · 8 comments
Open

"Missing 'proposalResponses' parameter in transaction request" #162

JessKXWL opened this issue Feb 18, 2022 · 8 comments

Comments

@JessKXWL
Copy link

JessKXWL commented Feb 18, 2022

I recently started learning fabric and wrote a small demo, but there were errors when uploading data using postman. When I upload the following data, the code will not make mistakes.But when the data I upload is 15M, an error will be reported,"Missing 'proposalResponses' parameter in transaction request"。here is the data

{
    "identifier": "client0_to_rsu4_epoch1",
    "data": {
        "enc_vectors": {
            "conv1.weight": "conv1.weightxxxxxxxxxxx",
            "conv1.bias": "conv1.biasxxxxx",
            "conv2.weight": "conv2.weightxxx",
            "conv2.bias": "conv2.biasxxxxxx",
            "fc1.weight": "fc1.weightxxxxx",
            "fc1.bias": "fc1.biasxxxx",
            "fc2.weight": "fc2.weightxxxxxxx",
            "fc2.bias": "fc2.biasxxxx"
        },
        "dec_aes_key": "chBXLZA03PXYzs43UArhGfGsSn7TACdldFIqYPTO3/FjS73h50IX4RSoALE13fqkROEray0lsLiShIN/48exerGDEaL0BN6O0gGpq55WwNtRUqrsOvGzwisFLJVGK3d5nCyo+Hw8QwjO4fwfQs2ynpeubP1+Zr/TIx09p4NDUHM=",
        "loss_slice": 0.10846090443590854
    }
}

The following is the data displayed in the docker log

docker logs dev-peer1.org1.example.com-privacy_cc-1.0
invoke is runningadd
进入add函数
反序列化中
根据Id获取值
添加数据
序列化数据
保存数据
发送事件

I wonder if this problem occurs because the uploaded data is too large.

I tried to change PreferredMaxBytes from 512KB to 15MB, but it didn't work.

Is there any way for me to upload such large data?

@JessKXWL JessKXWL reopened this Feb 18, 2022
@JessKXWL JessKXWL reopened this Feb 18, 2022
@Creazy-MR
Copy link

@JessKXWL Dear friends, how did you deal this problem later?

@JessKXWL
Copy link
Author

@JessKXWL Dear friends, how did you deal this problem later?

I didn't solve this problem, but later I tried to find out the limit. It's OK to upload data below 4M. The maximum data transmitted by the gossip protocol is also 4M, so I think it's related to the gossip protocol. However, there will still be errors when modifying the maximum data transmitted by the gossip protocol. It may be that I changed the wrong place

@Creazy-MR
Copy link

@JessKXWL ,thank you very much! i will try to have a look on it , this problem is really Strange

@saikumar-neelam
Copy link

@JessKXWL : Check the network.json, verify the peer endpoints configured are correct or not.

@NonCover
Copy link

我的问题跟你的问题一样。但我是获取数据时报的这个错误。

@JessKXWL
Copy link
Author

JessKXWL commented Nov 27, 2023 via email

@Creazy-MR
Copy link

Creazy-MR commented Nov 28, 2023 via email

@NonCover
Copy link

请问是在network.json文件里面改吗?

  "orderers": {
    "orderer.example.com": {
      "url": "192.168.227.128:7050",
      "grpcOptions": {
        "grpc.ssl_target_name_override": "orderer.example.com",
        "grpc-max-send-message-length": -1 // 无限制
      },
      "tlsCACerts": {
        "path": "./crypto-config/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem"
      }
    }
  },

但是改了后,重新启动程序还是报这个错误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants