Skip to content

http.Client.Do fails to parse responce from bitcoin rpc server #2048

Closed
@gopherbot

Description

@gopherbot

by tm1rbrt:

request, e := http.NewRequest("POST", "/",
strings.NewReader(string(callStr)))
request.SetBasicAuth(brpc.user, brpc.pass)
httpClient := new(http.Client)
responce, e := httpClient.Do(request)

The last line throws the following error: unsupported protocol scheme ""

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions