Skip to content

insert with expired access_token but good refresh_token fails #122

Description

@ivanmo
Error: Body attribute missing in multipart.
    at Error (<anonymous>)
    at Request.multipart (..\gapi.nodejs\node_modules\googleapis\node_modules\request\index.js:997:28)
    at Array.forEach (native)
    at Request.multipart (..\gapi.nodejs\node_modules\googleapis\node_modules\request\index.js:995:13)
    at Request.init (..\gapi.nodejs\node_modules\googleapis\node_modules\request\index.js:326:10)
    at new Request (..\gapi.nodejs\node_modules\googleapis\node_modules\request\index.js:124:8)
    at request (..\gapi.nodejs\node_modules\googleapis\node_modules\request\index.js:1255:11)
    at DefaultTransporter.request (..\gapi.nodejs\node_modules\googleapis\lib\transporters.js:52:3)
    at OAuth2Client.request (.\gapi.nodejs\node_modules\googleapis\lib\auth\oauth2client.js:192:20)
    at OAuth2Client.request (.\gapi.nodejs\node_modules\googleapis\lib\auth\oauth2client.js:206:16)

right after 1st insert request: var r = new Request(options) fails with auth error, document body disappears from the options object. so next attempt after access token gets refreshed fails with above error.

Activity

  1. mrmoses commented on Jan 18, 2014

    @mrmoses

    Same as #98

  2. ryanseys commented on Jul 30, 2014

    @ryanseys
    Contributor

    Just released 1.0.3 which addresses this issue. The access token will be refreshed prior to initial request if has expired or is missing and you have a refresh token set. If the request fails due to a missing, invalid, or revoked access token, we will no longer attempt to refresh and re-attempt the request, which is why you're seeing this issue.

    https://github.com/google/google-api-nodejs-client/releases/tag/1.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions