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

[BUG] Google Drive - Cannot create pdf file from google doc template #14138

Open
LucBerge opened this issue Sep 30, 2024 · 0 comments
Open

[BUG] Google Drive - Cannot create pdf file from google doc template #14138

LucBerge opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@LucBerge
Copy link
Contributor

Describe the bug
I am not able to generate pdf file from google doc template using the Create file from template action.

To Reproduce
Steps to reproduce the behavior:

  1. Create a file in google drive and get the id
  2. Create a workflow with the Google drive - Create file from template action
  3. In the mode field, select the pdf option
  4. Test the step

Expected behavior
Pdf file created at the expected location.

Current behavior

FetchError

invalid json response body at https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart&alt=json reason: Unexpected token '<', "<html><hea"... is not valid JSON

Stack trace:
    at null.null (/tmp/__pdg__/dist/code/5a57c33732a575ac4ba9957da31e30c2a6f0a06d3587913bbc68d06658a177dd/node_modules/.pnpm/[email protected]/node_modules/node-fetch/lib/index.js:273:32)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at null.null (/tmp/__pdg__/dist/code/5a57c33732a575ac4ba9957da31e30c2a6f0a06d3587913bbc68d06658a177dd/node_modules/.pnpm/[email protected]/node_modules/google-docs-mustaches/lib/apis/fetch.js:25:27)
    at Object.run (file:///tmp/__pdg__/dist/code/5a57c33732a575ac4ba9957da31e30c2a6f0a06d3587913bbc68d06658a177dd/code/actions/create-file-from-template/create-file-from-template.mjs:91:21)
    at null.executeComponent (/var/task/launch_worker.js:292:22)
    at MessagePort.messageHandler (/var/task/launch_worker.js:792:28)

Additional context

  • Component version : 0.1.5
  • It seams to be an error in the google-docs-mustaches package
@LucBerge LucBerge added the bug Something isn't working label Sep 30, 2024
@LucBerge LucBerge changed the title [BUG] Google Drive - Cannot create file from template [BUG] Google Drive - Cannot create pdf file from google doc template Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant