Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insert with expired access_token but good refresh_token fails #122

Closed
ivanmo opened this issue Dec 15, 2013 · 2 comments
Closed

insert with expired access_token but good refresh_token fails #122

ivanmo opened this issue Dec 15, 2013 · 2 comments
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@ivanmo
Copy link

ivanmo commented Dec 15, 2013

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.

@mrmoses
Copy link

mrmoses commented Jan 18, 2014

Same as #98

@ryanseys
Copy link
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

@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
This was referenced Jun 20, 2023
This was referenced Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants