failed to create selenium remote driver: unknown error: Content-Type header does not indicate utf-8 encoded json: application/json
the headers need to be corrected
func newRequest(method string, url string, data []byte) (*http.Request, error) {
request, err := http.NewRequest(method, url, bytes.NewBuffer(data))
if err != nil {
return nil, err
}
if data != nil {
request.Header.Add("Content-Type", jsonContentType)
}
return request, nil
}
correct:
"Content-Type", "application/json; charset=utf-8"