Uploading a file using an HtmlService form in Google Apps always causes “server error” and a stack trace

后端 未结 1 1196
孤街浪徒
孤街浪徒 2021-01-20 12:36

I am trying to make a script for my Google spreadsheet in which I upload an XML file and process its data. I am able to create a form, display it in a modal dialog, but I ge

1条回答
  •  执念已碎
    2021-01-20 13:15

    It appears that the issue only occurs in a recently released version of Google App's scripting interface, "V8".

    When I create a script, I am prompted to use this version of their scripting interface. Trusting Google to test their functionalities, I accepted without thinking.

    If I edit my script's configuration file to use STABLE instead of V8, I do not encounter the issue. If you're having this issue, here's how to do that:

    1. Open the Script Editor.
    2. In the top menu, select View > Show manifest file.
    3. In the files list, open appsscript.json.
    4. Replace "runtimeVersion": "V8" with "runtimeVersion": "STABLE"
    5. Save.

    This is however alarming as I presume the current stable version will be deprecated eventually in favor of V8. I logged an issue for this: https://issuetracker.google.com/issues/149980602

    0 讨论(0)
提交回复
热议问题