cello icon indicating copy to clipboard operation
cello copied to clipboard

Many bad requests errors "'NoneType' object has no attribute 'network'"

Open z331235161 opened this issue 4 months ago • 9 comments

The deployment was completed using MakeFile. After logging in at ip:8081 with the credentials [email protected], successful login, clicking on the Agent, Node, or Network functions all resulted in a "400 Bad Request: 'NoneType' object has no attribute 'network'" error.

Image Image

I found that someone else has encountered the same issue as me #592. I checked it and tried multiple times using the following steps, but the issue still couldn't be resolved:

  1. make clean
  2. make local

Steps to Reproduce

  1. git clone branch release-1.0.0
  2. make local
Image Image Image

Context (Environment)

  • Docker version: 26.1.3
  • Docker compose version: v2.27.0

Container logs

Image Image Image Image Image

z331235161 avatar Aug 06 '25 06:08 z331235161

me too~

smart68668 avatar Aug 14 '25 04:08 smart68668

Hello friends👋 This is because the default user you login as doesn't belong to any organization. You can register a new organization and login as its users and see if the problem still exists.

dodo920306 avatar Aug 14 '25 06:08 dodo920306

As the conclusion of #694, we plan to fix this in the near future.

silent these annoying errors and give it an empty list for everything. https://github.com/hyperledger-cello/cello/issues/694#issuecomment-3089840075

Feel free to reply if you have any futher question, or even better, you want to contribute to fix this problem.

dodo920306 avatar Aug 14 '25 06:08 dodo920306

As the conclusion of #694, we plan to fix this in the near future.

silent these annoying errors and give it an empty list for everything. #694 (comment)

Feel free to reply if you have any futher question, or even better, you want to contribute to fix this problem.

@dodo920306 When creating the organization, since there was only the "name" field in the front - end, while the back - end required three non - empty fields, a 400 error occurred. This seems to be a problem with the code's own logic.

Image Image

smart68668 avatar Aug 15 '25 03:08 smart68668

@dodo920306 When creating the organization, since there was only the "name" field in the front - end, while the back - end required three non - empty fields, a 400 error occurred. This seems to be a problem with the code's own logic.

It's, and you can open another issue for this. One should use the register form in the login page to create an organization and its first user. This form is deprecated and will be removed soon.

dodo920306 avatar Aug 15 '25 04:08 dodo920306

By the way, a new version of the document with a tutorial series for Hyperledger Cello is on the way, and you can get more information from it after the PR #731 is merged.

dodo920306 avatar Aug 15 '25 04:08 dodo920306

By the way, a new version of the document with a tutorial series for Hyperledger Cello is on the way, and you can more information from it after the PR #731 is merged.

Nice! Have you set up any communication forums or communities where people can discuss together?

smart68668 avatar Aug 15 '25 08:08 smart68668

Nice! Have you set up any communication forums or communities where people can discuss together?

Well, I personally now use the official Discord channel and reply there, but obviously the previous maintainers didn't, so there are not so much discussions about Cello on it currently.

dodo920306 avatar Aug 16 '25 00:08 dodo920306

After discussion, the solution should be:

  • All orgs need to register;
  • Existing orgs can add a member into it.

yeasy avatar Aug 16 '25 01:08 yeasy