We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Simple issue - it seems that the clasp doesn't set error code(%errorlevel% in windows in case of failure) That's how it looks
d:\prj\prosper-bot\gas\internal>clasp push / Pushing files…Push failed. Errors: GaxiosError: Syntax error: SyntaxError: Unexpected identifier 'en' line: 1 file: code.gs at Gaxios.request (C:\Users\Roman\AppData\Roaming\npm\node_modules@google\clasp\node_modules\gaxios\build\src\gaxios.js:129:23) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async OAuth2Client.requestAsync (C:\Users\Roman\AppData\Roaming\npm\node_modules@google\clasp\node_modules\google-auth-library\build\src\auth\oauth2client.js:368:18) at async pushFiles (file:///C:/Users/Roman/AppData/Roaming/npm/node_modules/@google/clasp/build/src/files.js:296:17) at async Command.default (file:///C:/Users/Roman/AppData/Roaming/npm/node_modules/@google/clasp/build/src/commands/push.js:63:5) at async Command.parseAsync (C:\Users\Roman\AppData\Roaming\npm\node_modules@google\clasp\node_modules\commander\lib\command.js:923:5) at async file:///C:/Users/Roman/AppData/Roaming/npm/node_modules/@google/clasp/build/src/index.js:361:9 { response: { config: { url: 'https://script.googleapis.com/v1/projects/18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb_/content', method: 'PUT', userAgentDirectives: [Array], paramsSerializer: [Function (anonymous)], data: [Object], headers: [Object], params: {}, validateStatus: [Function (anonymous)], retry: true, body: '{"scriptId":"18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb","files":[{"name":"appsscript","source":"{\n \"timeZone\": \"Europe/Lisbon\",\n \"exceptionLogging\": \"STACKDRIVER\",\n \"runtimeVersion\": \"V8\",\n \"oauthScopes\": [\n \"https://www.googleapis.com/auth/script.container.ui\",\n \"https://www.googleapis.com/auth/script.external_request\",\n \"https://www.googleapis.com/auth/spreadsheets.currentonly\",\n \"https://www.googleapis.com/auth/script.scriptapp\",\n \"https://www.googleapis.com/auth/userinfo.email\",\n \"https://www.googleapis.com/auth/userinfo.profile\"\n ],\n \"addOns\": {\n \"common\": {\n \"name\": \"Staging v2 ProsperBot Add-On\",\n \"logoUrl\": \"https://staging-sidebar.helloprospr.com/logo.svg\",\n \"useLocaleFromApp\": true,\n \"homepageTrigger\": {\n \"enabled\": true,\n \"runFunction\": \"onHomepage\"\n }\n },\n \"sheets\": {\n \"homepageTrigger\": {\n \"enabled\": true,\n \"runFunction\": \"onHomepage\"\n }\n }\n },\n \"urlFetchWhitelist\": [\n \"https://script.google.com/\",\n \"https://sandbox.plaid.com/\",\n \"https://production.plaid.com/\",\n \"https://plaid.com/\",\n \"https://rdfp-engine-7o7tsdjkha-uc.a.run.app/\"\n ],\n \"dependencies\": {\n \"enabledAdvancedServices\": [],\n \"libraries\": [\n {\n \"userSymbol\": \"main\",\n \"version\": \"0\",\n \"libraryId\": \"15ZtjqEShRS73fBXHalW_j97IdAAa27LnoFjI_CG_6AZBrqQKmqxA1BCK\",\n \"developmentMode\": true\n }\n ]\n }\n}","type":"JSON"},{"name":"code","source":"function onOp en() {\r\n return main.onOpen();\r\n}\r\n\r\nfunction onInstall() {\r\n return main.onInstall();\r\n}\r\n\r\nfunction onEdit() {\r\n return main.onEdit();\r\n}\r\n\r\nfunction exec() {\r\n return main.exec.apply(main, arguments);\r\n}\r\n\r\nfunction dailyUpdate() {\r\n return main.dailyUpdate.apply(main, arguments);\r\n}\r\n\r\nconst Addon = main.getAddon();\r\nAddon.init(this);","type":"SERVER_JS"}]}', responseType: 'json', retryConfig: [Object] }, data: { error: [Object] }, headers: { 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'cache-control': 'private', 'content-encoding': 'gzip', 'content-type': 'application/json; charset=UTF-8', date: 'Mon, 18 Nov 2024 20:53:10 GMT', server: 'ESF', 'transfer-encoding': 'chunked', vary: 'Origin, X-Origin, Referer', 'x-content-type-options': 'nosniff', 'x-frame-options': 'SAMEORIGIN', 'x-xss-protection': '0' }, status: 400, statusText: 'Bad Request', request: { responseURL: 'https://script.googleapis.com/v1/projects/18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb_/content' } }, config: { url: 'https://script.googleapis.com/v1/projects/18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb_/content', method: 'PUT', userAgentDirectives: [ [Object] ], paramsSerializer: [Function (anonymous)], data: { scriptId: '18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb_', files: [Array] }, headers: { 'x-goog-api-client': 'gdcl/5.1.0 gl-node/20.8.0 auth/7.14.1', 'Accept-Encoding': 'gzip', 'User-Agent': 'google-api-nodejs-client/5.1.0 (gzip)', Authorization: 'Bearer ya29.a0AeDClZAFxkjpCg0lwiJxzWoE8jmvnspRx9508PaVAPJ5vcJQB9KTi3LHzKRsIAakf0E-VvQtI3sRAfyBqt7412VCyVx-3drYNbqjYCVddZCoYPs43D3GZg01S54jFMnn8LNzfiYEyn5Egws8Vi_bKECJCmW51xsBymvKq-mIgaCgYKAdASARESFQHGX2Mi6Dh_c6ummQzwuPXqzzbUlw0177', 'Content-Type': 'application/json', Accept: 'application/json' }, params: {}, validateStatus: [Function (anonymous)], retry: true, body: '{"scriptId":"18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb","files":[{"name":"appsscript","source":"{\n \"timeZone\": \"Europe/Lisbon\",\n \"exceptionLogging\": \"STACKDRIVER\",\n \"runtimeVersion\": \"V8\",\n \"oauthScopes\": [\n \"https://www.googleapis.com/auth/script.container.ui\",\n \"https://www.googleapis.com/auth/script.external_request\",\n \"https://www.googleapis.com/auth/spreadsheets.currentonly\",\n \"https://www.googleapis.com/auth/script.scriptapp\",\n \"https://www.googleapis.com/auth/userinfo.email\",\n \"https://www.googleapis.com/auth/userinfo.profile\"\n ],\n \"addOns\": {\n \"common\": {\n \"name\": \"Staging v2 ProsperBot Add-On\",\n \"logoUrl\": \"https://staging-sidebar.helloprospr.com/logo.svg\",\n \"useLocaleFromApp\": true,\n \"homepageTrigger\": {\n \"enabled\": true,\n \"runFunction\": \"onHomepage\"\n }\n },\n \"sheets\": {\n \"homepageTrigger\": {\n \"enabled\": true,\n \"runFunction\": \"onHomepage\"\n }\n }\n },\n \"urlFetchWhitelist\": [\n \"https://script.google.com/\",\n \"https://sandbox.plaid.com/\",\n \"https://production.plaid.com/\",\n \"https://plaid.com/\",\n \"https://rdfp-engine-7o7tsdjkha-uc.a.run.app/\"\n ],\n \"dependencies\": {\n \"enabledAdvancedServices\": [],\n \"libraries\": [\n {\n \"userSymbol\": \"main\",\n \"version\": \"0\",\n \"libraryId\": \"15ZtjqEShRS73fBXHalW_j97IdAAa27LnoFjI_CG_6AZBrqQKmqxA1BCK\",\n \"developmentMode\": true\n }\n ]\n }\n}","type":"JSON"},{"name":"code","source":"function onOp en() {\r\n return main.onOpen();\r\n}\r\n\r\nfunction onInstall() {\r\n return main.onInstall();\r\n}\r\n\r\nfunction onEdit() {\r\n return main.onEdit();\r\n}\r\n\r\nfunction exec() {\r\n return main.exec.apply(main, arguments);\r\n}\r\n\r\nfunction dailyUpdate() {\r\n return main.dailyUpdate.apply(main, arguments);\r\n}\r\n\r\nconst Addon = main.getAddon();\r\nAddon.init(this);","type":"SERVER_JS"}]}', responseType: 'json', retryConfig: { currentRetryAttempt: 0, retry: 3, httpMethodsToRetry: [Array], noResponseRetries: 2, statusCodesToRetry: [Array] } }, code: 400, errors: [ { message: "Syntax error: SyntaxError: Unexpected identifier 'en' line: 1 file: code.gs", domain: 'global', reason: 'badRequest' } ] } └─ appsscript.json └─ code.js Pushed 2 files.
d:\prj\prosper-bot\gas\internal>echo %errorlevel% 0
Is it not implemented?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Simple issue - it seems that the clasp doesn't set error code(%errorlevel% in windows in case of failure)
That's how it looks
d:\prj\prosper-bot\gas\internal>clasp push
/ Pushing files…Push failed. Errors:
GaxiosError: Syntax error: SyntaxError: Unexpected identifier 'en' line: 1 file: code.gs
at Gaxios.request (C:\Users\Roman\AppData\Roaming\npm\node_modules@google\clasp\node_modules\gaxios\build\src\gaxios.js:129:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async OAuth2Client.requestAsync (C:\Users\Roman\AppData\Roaming\npm\node_modules@google\clasp\node_modules\google-auth-library\build\src\auth\oauth2client.js:368:18)
at async pushFiles (file:///C:/Users/Roman/AppData/Roaming/npm/node_modules/@google/clasp/build/src/files.js:296:17)
at async Command.default (file:///C:/Users/Roman/AppData/Roaming/npm/node_modules/@google/clasp/build/src/commands/push.js:63:5)
at async Command.parseAsync (C:\Users\Roman\AppData\Roaming\npm\node_modules@google\clasp\node_modules\commander\lib\command.js:923:5)
at async file:///C:/Users/Roman/AppData/Roaming/npm/node_modules/@google/clasp/build/src/index.js:361:9 {
response: {
config: {
url: 'https://script.googleapis.com/v1/projects/18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb_/content',
method: 'PUT',
userAgentDirectives: [Array],
paramsSerializer: [Function (anonymous)],
data: [Object],
headers: [Object],
params: {},
validateStatus: [Function (anonymous)],
retry: true,
body: '{"scriptId":"18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb","files":[{"name":"appsscript","source":"{\n \"timeZone\": \"Europe/Lisbon\",\n \"exceptionLogging\": \"STACKDRIVER\",\n \"runtimeVersion\": \"V8\",\n \"oauthScopes\": [\n \"https://www.googleapis.com/auth/script.container.ui\",\n \"https://www.googleapis.com/auth/script.external_request\",\n \"https://www.googleapis.com/auth/spreadsheets.currentonly\",\n \"https://www.googleapis.com/auth/script.scriptapp\",\n \"https://www.googleapis.com/auth/userinfo.email\",\n \"https://www.googleapis.com/auth/userinfo.profile\"\n ],\n \"addOns\": {\n \"common\": {\n \"name\": \"Staging v2 ProsperBot Add-On\",\n \"logoUrl\": \"https://staging-sidebar.helloprospr.com/logo.svg\",\n \"useLocaleFromApp\": true,\n \"homepageTrigger\": {\n \"enabled\": true,\n \"runFunction\": \"onHomepage\"\n }\n },\n \"sheets\": {\n \"homepageTrigger\": {\n \"enabled\": true,\n \"runFunction\": \"onHomepage\"\n }\n }\n },\n \"urlFetchWhitelist\": [\n \"https://script.google.com/\",\n \"https://sandbox.plaid.com/\",\n \"https://production.plaid.com/\",\n \"https://plaid.com/\",\n \"https://rdfp-engine-7o7tsdjkha-uc.a.run.app/\"\n ],\n \"dependencies\": {\n \"enabledAdvancedServices\": [],\n \"libraries\": [\n {\n \"userSymbol\": \"main\",\n \"version\": \"0\",\n \"libraryId\": \"15ZtjqEShRS73fBXHalW_j97IdAAa27LnoFjI_CG_6AZBrqQKmqxA1BCK\",\n \"developmentMode\": true\n }\n ]\n }\n}","type":"JSON"},{"name":"code","source":"function onOp en() {\r\n return main.onOpen();\r\n}\r\n\r\nfunction onInstall() {\r\n return main.onInstall();\r\n}\r\n\r\nfunction onEdit() {\r\n return main.onEdit();\r\n}\r\n\r\nfunction exec() {\r\n return main.exec.apply(main, arguments);\r\n}\r\n\r\nfunction dailyUpdate() {\r\n return main.dailyUpdate.apply(main, arguments);\r\n}\r\n\r\nconst Addon = main.getAddon();\r\nAddon.init(this);","type":"SERVER_JS"}]}',
responseType: 'json',
retryConfig: [Object]
},
data: { error: [Object] },
headers: {
'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
'cache-control': 'private',
'content-encoding': 'gzip',
'content-type': 'application/json; charset=UTF-8',
date: 'Mon, 18 Nov 2024 20:53:10 GMT',
server: 'ESF',
'transfer-encoding': 'chunked',
vary: 'Origin, X-Origin, Referer',
'x-content-type-options': 'nosniff',
'x-frame-options': 'SAMEORIGIN',
'x-xss-protection': '0'
},
status: 400,
statusText: 'Bad Request',
request: {
responseURL: 'https://script.googleapis.com/v1/projects/18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb_/content'
}
},
config: {
url: 'https://script.googleapis.com/v1/projects/18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb_/content',
method: 'PUT',
userAgentDirectives: [ [Object] ],
paramsSerializer: [Function (anonymous)],
data: {
scriptId: '18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb_',
files: [Array]
},
headers: {
'x-goog-api-client': 'gdcl/5.1.0 gl-node/20.8.0 auth/7.14.1',
'Accept-Encoding': 'gzip',
'User-Agent': 'google-api-nodejs-client/5.1.0 (gzip)',
Authorization: 'Bearer ya29.a0AeDClZAFxkjpCg0lwiJxzWoE8jmvnspRx9508PaVAPJ5vcJQB9KTi3LHzKRsIAakf0E-VvQtI3sRAfyBqt7412VCyVx-3drYNbqjYCVddZCoYPs43D3GZg01S54jFMnn8LNzfiYEyn5Egws8Vi_bKECJCmW51xsBymvKq-mIgaCgYKAdASARESFQHGX2Mi6Dh_c6ummQzwuPXqzzbUlw0177',
'Content-Type': 'application/json',
Accept: 'application/json'
},
params: {},
validateStatus: [Function (anonymous)],
retry: true,
body: '{"scriptId":"18DaHJ_AzDi3FUy_KLgLrn3JlM2_JbZVtNtF2EfYkGULL_Zc5_rCRahb","files":[{"name":"appsscript","source":"{\n \"timeZone\": \"Europe/Lisbon\",\n \"exceptionLogging\": \"STACKDRIVER\",\n \"runtimeVersion\": \"V8\",\n \"oauthScopes\": [\n \"https://www.googleapis.com/auth/script.container.ui\",\n \"https://www.googleapis.com/auth/script.external_request\",\n \"https://www.googleapis.com/auth/spreadsheets.currentonly\",\n \"https://www.googleapis.com/auth/script.scriptapp\",\n \"https://www.googleapis.com/auth/userinfo.email\",\n \"https://www.googleapis.com/auth/userinfo.profile\"\n ],\n \"addOns\": {\n \"common\": {\n \"name\": \"Staging v2 ProsperBot Add-On\",\n \"logoUrl\": \"https://staging-sidebar.helloprospr.com/logo.svg\",\n \"useLocaleFromApp\": true,\n \"homepageTrigger\": {\n \"enabled\": true,\n \"runFunction\": \"onHomepage\"\n }\n },\n \"sheets\": {\n \"homepageTrigger\": {\n \"enabled\": true,\n \"runFunction\": \"onHomepage\"\n }\n }\n },\n \"urlFetchWhitelist\": [\n \"https://script.google.com/\",\n \"https://sandbox.plaid.com/\",\n \"https://production.plaid.com/\",\n \"https://plaid.com/\",\n \"https://rdfp-engine-7o7tsdjkha-uc.a.run.app/\"\n ],\n \"dependencies\": {\n \"enabledAdvancedServices\": [],\n \"libraries\": [\n {\n \"userSymbol\": \"main\",\n \"version\": \"0\",\n \"libraryId\": \"15ZtjqEShRS73fBXHalW_j97IdAAa27LnoFjI_CG_6AZBrqQKmqxA1BCK\",\n \"developmentMode\": true\n }\n ]\n }\n}","type":"JSON"},{"name":"code","source":"function onOp en() {\r\n return main.onOpen();\r\n}\r\n\r\nfunction onInstall() {\r\n return main.onInstall();\r\n}\r\n\r\nfunction onEdit() {\r\n return main.onEdit();\r\n}\r\n\r\nfunction exec() {\r\n return main.exec.apply(main, arguments);\r\n}\r\n\r\nfunction dailyUpdate() {\r\n return main.dailyUpdate.apply(main, arguments);\r\n}\r\n\r\nconst Addon = main.getAddon();\r\nAddon.init(this);","type":"SERVER_JS"}]}',
responseType: 'json',
retryConfig: {
currentRetryAttempt: 0,
retry: 3,
httpMethodsToRetry: [Array],
noResponseRetries: 2,
statusCodesToRetry: [Array]
}
},
code: 400,
errors: [
{
message: "Syntax error: SyntaxError: Unexpected identifier 'en' line: 1 file: code.gs",
domain: 'global',
reason: 'badRequest'
}
]
}
└─ appsscript.json
└─ code.js
Pushed 2 files.
d:\prj\prosper-bot\gas\internal>echo %errorlevel%
0
Is it not implemented?
The text was updated successfully, but these errors were encountered: