Skip to content

[BUG] iroha_client 401 HTTP Response after executing get_config_value method #4177

@Stukalov-A-M

Description

@Stukalov-A-M

It happens because method doesn't pass Authorization header to the Request builder.
Also we are using both attohttpc and http crates for building HTTP requests, that creates code excessiveness and in some cases ambiguousness.
As an example - building a request through request body check.

pub fn build(self) -> Result<DefaultRequest> {
        self.inner
            .map(|b| DefaultRequest(b.bytes(self.body.map_or_else(Vec::new, |vec| vec))))
    }

For this reason, in the process of the bug fixing, I propose to refactor by removing the attohttpc crate from client and unify all HTTP request building using the http crate only.

Metadata

Metadata

Assignees

Labels

iroha2-devThe re-implementation of a BFT hyperledger in RUST

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions