FAQ
Brad and go-nuts:

I've been using the google-api-go-client library to access google storage
for a long time (probably since the library first was created). Generally
I've had no problems. This morning though, nothing is working.

googleapi: got HTTP response code 404 and error reading body: invalid
character '<' looking for beginning of value: error uploading file

So I guess my first question is, is there any way to get the library to
show me what the error message is? Not seeing an obvious way to do that, I
dug into the internals and did a req.Write(os.Stdout), and I get this:

<?xml version='1.0'
encoding='UTF-8'?><Error><Code>NoSuchBucket</Code><Message>The specified
bucket does not exist.</Message></Error>

I know the bucket still exists, I can see it in my cloud console, and AFAIK
I haven't changed anything since yesterday. Any idea what's going on here?

graham

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Graham Miller at Dec 13, 2013 at 2:26 pm
    And I guess for context, the code that causes the error might be helpful:

             service, err := storage.New(c)
             if err != nil {
                     return err
             }

             obj := &storage.Object{
                     ContentEncoding: "application/zip",
                     Name: filename,
             }

             _, err = service.Objects.Insert(bucket, obj).Media(f).Do()
             return err


    On Fri, Dec 13, 2013 at 9:23 AM, Graham Miller wrote:

    Brad and go-nuts:

    I've been using the google-api-go-client library to access google storage
    for a long time (probably since the library first was created). Generally
    I've had no problems. This morning though, nothing is working.

    googleapi: got HTTP response code 404 and error reading body: invalid
    character '<' looking for beginning of value: error uploading file

    So I guess my first question is, is there any way to get the library to
    show me what the error message is? Not seeing an obvious way to do that, I
    dug into the internals and did a req.Write(os.Stdout), and I get this:

    <?xml version='1.0'
    encoding='UTF-8'?><Error><Code>NoSuchBucket</Code><Message>The specified
    bucket does not exist.</Message></Error>

    I know the bucket still exists, I can see it in my cloud console, and
    AFAIK I haven't changed anything since yesterday. Any idea what's going on
    here?

    graham
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Brad Fitzpatrick at Dec 13, 2013 at 2:34 pm
    This makes me sad. I hope Google didn't change the API.

    You really didn't change any code or update to a new version of the Go
    client?
    On Dec 13, 2013 6:23 PM, "Graham Miller" wrote:

    Brad and go-nuts:

    I've been using the google-api-go-client library to access google storage
    for a long time (probably since the library first was created). Generally
    I've had no problems. This morning though, nothing is working.

    googleapi: got HTTP response code 404 and error reading body: invalid
    character '<' looking for beginning of value: error uploading file

    So I guess my first question is, is there any way to get the library to
    show me what the error message is? Not seeing an obvious way to do that, I
    dug into the internals and did a req.Write(os.Stdout), and I get this:

    <?xml version='1.0'
    encoding='UTF-8'?><Error><Code>NoSuchBucket</Code><Message>The specified
    bucket does not exist.</Message></Error>

    I know the bucket still exists, I can see it in my cloud console, and
    AFAIK I haven't changed anything since yesterday. Any idea what's going on
    here?

    graham
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Graham Miller at Dec 13, 2013 at 2:40 pm
    No, I was using the same binaries as yesterday. No rebuild in the last few
    weeks.

    graham


    On Fri, Dec 13, 2013 at 9:34 AM, Brad Fitzpatrick wrote:

    This makes me sad. I hope Google didn't change the API.

    You really didn't change any code or update to a new version of the Go
    client?
    On Dec 13, 2013 6:23 PM, "Graham Miller" wrote:

    Brad and go-nuts:

    I've been using the google-api-go-client library to access google storage
    for a long time (probably since the library first was created). Generally
    I've had no problems. This morning though, nothing is working.

    googleapi: got HTTP response code 404 and error reading body: invalid
    character '<' looking for beginning of value: error uploading file

    So I guess my first question is, is there any way to get the library to
    show me what the error message is? Not seeing an obvious way to do that, I
    dug into the internals and did a req.Write(os.Stdout), and I get this:

    <?xml version='1.0'
    encoding='UTF-8'?><Error><Code>NoSuchBucket</Code><Message>The specified
    bucket does not exist.</Message></Error>

    I know the bucket still exists, I can see it in my cloud console, and
    AFAIK I haven't changed anything since yesterday. Any idea what's going on
    here?

    graham
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Graham Miller at Dec 13, 2013 at 2:46 pm
    I just realized that I also get errors manually uploading, so that seems to
    imply the problem is elsewhere. I'll go in through the support front door
    to see if I can get more info. But regarding my first question, can the
    API give me more info on an error when it comes through? Thanks.

    graham


    On Fri, Dec 13, 2013 at 9:38 AM, Graham Miller wrote:

    No, I was using the same binaries as yesterday. No rebuild in the last
    few weeks.

    graham


    On Fri, Dec 13, 2013 at 9:34 AM, Brad Fitzpatrick wrote:

    This makes me sad. I hope Google didn't change the API.

    You really didn't change any code or update to a new version of the Go
    client?
    On Dec 13, 2013 6:23 PM, "Graham Miller" wrote:

    Brad and go-nuts:

    I've been using the google-api-go-client library to access google
    storage for a long time (probably since the library first was created).
    Generally I've had no problems. This morning though, nothing is working.

    googleapi: got HTTP response code 404 and error reading body: invalid
    character '<' looking for beginning of value: error uploading file

    So I guess my first question is, is there any way to get the library to
    show me what the error message is? Not seeing an obvious way to do that, I
    dug into the internals and did a req.Write(os.Stdout), and I get this:

    <?xml version='1.0'
    encoding='UTF-8'?><Error><Code>NoSuchBucket</Code><Message>The specified
    bucket does not exist.</Message></Error>

    I know the bucket still exists, I can see it in my cloud console, and
    AFAIK I haven't changed anything since yesterday. Any idea what's going on
    here?

    graham
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Brad Fitzpatrick at Dec 13, 2013 at 2:47 pm
    Yeah, file a bug against the google-api-go-client project.


    On Fri, Dec 13, 2013 at 6:46 AM, Graham Miller wrote:

    I just realized that I also get errors manually uploading, so that seems
    to imply the problem is elsewhere. I'll go in through the support front
    door to see if I can get more info. But regarding my first question, can
    the API give me more info on an error when it comes through? Thanks.

    graham


    On Fri, Dec 13, 2013 at 9:38 AM, Graham Miller wrote:

    No, I was using the same binaries as yesterday. No rebuild in the last
    few weeks.

    graham


    On Fri, Dec 13, 2013 at 9:34 AM, Brad Fitzpatrick wrote:

    This makes me sad. I hope Google didn't change the API.

    You really didn't change any code or update to a new version of the Go
    client?
    On Dec 13, 2013 6:23 PM, "Graham Miller" <graham.miller@gmail.com>
    wrote:
    Brad and go-nuts:

    I've been using the google-api-go-client library to access google
    storage for a long time (probably since the library first was created).
    Generally I've had no problems. This morning though, nothing is working.

    googleapi: got HTTP response code 404 and error reading body: invalid
    character '<' looking for beginning of value: error uploading file

    So I guess my first question is, is there any way to get the library to
    show me what the error message is? Not seeing an obvious way to do that, I
    dug into the internals and did a req.Write(os.Stdout), and I get this:

    <?xml version='1.0'
    encoding='UTF-8'?><Error><Code>NoSuchBucket</Code><Message>The specified
    bucket does not exist.</Message></Error>

    I know the bucket still exists, I can see it in my cloud console, and
    AFAIK I haven't changed anything since yesterday. Any idea what's going on
    here?

    graham
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Graham Miller at Dec 13, 2013 at 2:49 pm
    K, thanks.

    graham

    On Fri, Dec 13, 2013 at 9:47 AM, Brad Fitzpatrick wrote:

    Yeah, file a bug against the google-api-go-client project.


    On Fri, Dec 13, 2013 at 6:46 AM, Graham Miller wrote:

    I just realized that I also get errors manually uploading, so that seems
    to imply the problem is elsewhere. I'll go in through the support front
    door to see if I can get more info. But regarding my first question, can
    the API give me more info on an error when it comes through? Thanks.

    graham


    On Fri, Dec 13, 2013 at 9:38 AM, Graham Miller wrote:

    No, I was using the same binaries as yesterday. No rebuild in the last
    few weeks.

    graham


    On Fri, Dec 13, 2013 at 9:34 AM, Brad Fitzpatrick wrote:

    This makes me sad. I hope Google didn't change the API.

    You really didn't change any code or update to a new version of the Go
    client?
    On Dec 13, 2013 6:23 PM, "Graham Miller" <graham.miller@gmail.com>
    wrote:
    Brad and go-nuts:

    I've been using the google-api-go-client library to access google
    storage for a long time (probably since the library first was created).
    Generally I've had no problems. This morning though, nothing is working.

    googleapi: got HTTP response code 404 and error reading body: invalid
    character '<' looking for beginning of value: error uploading file

    So I guess my first question is, is there any way to get the library
    to show me what the error message is? Not seeing an obvious way to do
    that, I dug into the internals and did a req.Write(os.Stdout), and I get
    this:

    <?xml version='1.0'
    encoding='UTF-8'?><Error><Code>NoSuchBucket</Code><Message>The specified
    bucket does not exist.</Message></Error>

    I know the bucket still exists, I can see it in my cloud console, and
    AFAIK I haven't changed anything since yesterday. Any idea what's going on
    here?

    graham
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Rick Tait at Dec 13, 2013 at 10:51 pm
    related datapoint: google-api-go-client/analytics/v3 is working just
    fine (via service account, cert+JWT+OAuth2). i just tested.

    FYI i promised a blog-y type post about HOW-TO query the core reporting api
    using Go + a headless service account. i'm ~95% done, but i'll have it
    finished over this weekend and post the url to the list when its nice and
    polished.

    RMT

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedDec 13, '13 at 2:23p
activeDec 13, '13 at 10:51p
posts8
users3
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase