danthareja / node-google-apps-script

[DEPRECATED - use clasp instead] The easiest way to develop Google Apps Script projects
MIT License
353 stars 70 forks source link

A Wiki page 'An error occured while running upload command: Bad Request' #31

Closed oshliaer closed 8 years ago

oshliaer commented 8 years ago

I would like to create a wiki page regards an issue. Should I do it? The draft of page below.

Some times you can catch An error occured while running upload command

User@BIGPC MINGW64 /c/dev/7e96514c3cb3075dde02 (master)
$ ./node_modules/.bin/gapps upload
Pushing back up to Google Drive...
An error occured while running upload command: Bad Request
Upload failed.

Here is the error object

{
 "cause": {
  "code": 400,
  "errors": [
   {
    "domain": "global",
    "reason": "badRequest",
    "message": "Bad Request"
   }
  ]
 },
 "isOperational": true,
 "code": 400,
 "errors": [
  {
   "domain": "global",
   "reason": "badRequest",
   "message": "Bad Request"
  }
 ]
}

This can happen because that is checked code syntax when uploading files. Try to check syntax your code locally.