Skip to content

fix create RpcClient with param HttpClient not set BaseAddress#488

Closed
tqk2811 wants to merge 1 commit intobmresearch:masterfrom
tqk2811:master
Closed

fix create RpcClient with param HttpClient not set BaseAddress#488
tqk2811 wants to merge 1 commit intobmresearch:masterfrom
tqk2811:master

Conversation

@tqk2811
Copy link
Contributor

@tqk2811 tqk2811 commented Mar 24, 2025

Status Type ⚠️ Core Change Issue
Ready Bug No

Problem

Create IRpcClient with param HttpClient not set HttpClient.BaseAddress cause request failed

Solution

_httpClient = httpClient ?? new HttpClient { BaseAddress = NodeAddress };

- _httpClient = httpClient ?? new HttpClient { BaseAddress = NodeAddress };
+ _httpClient = httpClient ?? new HttpClient();
+ _httpClient.BaseAddress = NodeAddress;

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

Successfully merging this pull request may close these issues.

2 participants