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

Errors when running fabric-sdk-go v1.0.0: Undefined types and method signature issues #291

Open
musaddiq-ashfaq opened this issue Oct 8, 2024 · 2 comments

Comments

@musaddiq-ashfaq
Copy link

musaddiq-ashfaq commented Oct 8, 2024

I am getting these errors when I am trying to run my main.go file in hyperledger fabric.

github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/discovery/client

../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/internal/github.com/hyperledger/fabric/discovery/client/api.go:47:38: undefined: discovery.ChaincodeCall
../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/internal/github.com/hyperledger/fabric/discovery/client/client.go:83:63: undefined: discovery.ChaincodeInterest
../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/internal/github.com/hyperledger/fabric/discovery/client/client.go:120:65: undefined: discovery.ChaincodeCall
../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/internal/github.com/hyperledger/fabric/discovery/client/client.go:124:23: undefined: discovery.ChaincodeInterest
../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/internal/github.com/hyperledger/fabric/discovery/client/client.go:229:105: undefined: discovery.ChaincodeCall
../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/internal/github.com/hyperledger/fabric/discovery/client/client.go:247:64: undefined: discovery.ChaincodeCall
../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/internal/github.com/hyperledger/fabric/discovery/client/client.go:604:48: undefined: discovery.ChaincodeInterest
../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/internal/github.com/hyperledger/fabric/discovery/client/client.go:620:35: undefined: discovery.ChaincodeCall

github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations

../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/internal/github.com/hyperledger/fabric/core/operations/system.go:225:49: not enough arguments in call to s.statsd.SendLoop
have (<-chan time.Time, string, string)
want (context.Context, <-chan time.Time, string, string)

github.com/hyperledger/fabric-sdk-go/pkg/fab/resource

../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/pkg/fab/resource/configtx.go:83:41: cannot use block (variable of type *"github.com/hyperledger/fabric-protos-go/common".Block) as protoreflect.ProtoMessage value in argument to protolator.DeepMarshalJSON: *"github.com/hyperledger/fabric-protos-go/common".Block does not implement protoreflect.ProtoMessage (missing method ProtoReflect)
../../go/pkg/mod/github.com/hyperledger/fabric-sdk-go@v1.0.0/pkg/fab/resource/configtx.go:125:41: cannot use env (variable of type *"github.com/hyperledger/fabric-protos-go/common".Envelope) as protoreflect.ProtoMessage value in argument to protolator.DeepMarshalJSON: *"github.com/hyperledger/fabric-protos-go/common".Envelope does not implement protoreflect.ProtoMessage (missing method ProtoReflect)

@pfi79
Copy link
Contributor

pfi79 commented Oct 9, 2024

Note: This API is deprecated and is no longer maintained as of Fabric v2.5. When developing applications for Hyperledger Fabric v2.4 and later, you should use the Fabric Gateway client API.

@pfi79
Copy link
Contributor

pfi79 commented Oct 9, 2024

@denyeart can move this repository to the archive.

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

2 participants