Closed fergald closed 4 years ago
Various places in https://github.com/gphotosuploader/google-photos-api-client-go/blob/master/lib-gphotos/uploads.go call .Do to send a request. They check the err returned but that err is unset if the http request executes correctly but returns a non-200 status.
.Do
err
Something needs to also check res.StatusCode
res.StatusCode
https://golang.org/pkg/net/http/#Response
Otherwise you get mysterious failures with no useful error output. In my case it's an authentication error.
Sorry not in a good position to supply a patch but it seems like it should be fairly trivial.
Various places in https://github.com/gphotosuploader/google-photos-api-client-go/blob/master/lib-gphotos/uploads.go call
.Do
to send a request. They check theerr
returned but thaterr
is unset if the http request executes correctly but returns a non-200 status.Something needs to also check
res.StatusCode
https://golang.org/pkg/net/http/#Response
Otherwise you get mysterious failures with no useful error output. In my case it's an authentication error.
Sorry not in a good position to supply a patch but it seems like it should be fairly trivial.