Zoom cloud recording https wrong filename and extension. Youtube Invalid array length error

Describe the issue/error/question

Using HTTPS module I get with Zoom file, it comes with name instead GMT20230120-165512_Recording_1760x900.mp4 (if i get link via browser) as random set of letters and file extension too.

The file takes 465 megabytes this fits in this parameter - N8N_PAYLOAD_SIZE_MAX=1024 megabytes in vi docker-compose.yaml environments

Got error in Youtube. Invalid array length

I don’t understand what’s wrong, I assume it’s the file name that comes from the API request. The request is correct according zoom docs
https://marketplace.zoom.us/docs/api-reference/zoom-api/events/#operation/recording.completed

I’ve tried uploading via Header credentials and the result is the same, no correct file name is received.
in zoom dev forum i check i need to add flag -O for original name, but i don’t think it correct and i don’t know how to do that. )
Please help.

What is the error message (if any)?

Zoom - wrong filename and extension

Youtube
ERROR: UNKNOWN ERROR - check the detailed error for more information
Invalid array length

Please share the workflow

Share the output returned by the last node

NodeApiError: UNKNOWN ERROR - check the detailed error for more information
    at Object.googleApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/YouTube/GenericFunctions.js:24:15)
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/YouTube/YouTube.node.js:587:84)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:659:28)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:585:53

Information on your n8n setup

  • **n8n version:0.212.0 (and 0.210.2 too)
  • **Database you’re using (default: SQLite):Default
  • **Running n8n with the execution process: main
  • **Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker
  • **Digital Ocean - 2GB Memory, 1 CPU

i found a bug in https module (i don’t know how to get rid of that)

URL of download any Zoom record contains dots, for example
https:// us06web. zoom.us / rec / webhook_download / eR_gtb8uTs1PI9u41mpUuKhWXPY0FtFTyO1Xr_dsLssqcT-lmpVmhUE9sFDMS5cJWcbSJVJ82RPDZ3hE.bLLjupyNNgQ_bDrM/L3Xnkh6lVlSKP1fBJIoLOXA8mkAI805-vRheF8urxoOqdKUJrYrjuXlfjtpMtsE**.**qQZ98vYOWMJuXhHp

And original filename get after redirect (Follow Redirects checked).

BUT https module takes part of url as filename and extention, with example below showing as:

filename:
lmpVmhUE9sFDMS5cJWcbSJVJ82RPDZ3hE.bLLjupyNNgQ_bDrM/L3Xnkh6lVlSKP1fBJIoLOXA8mkAI805-vRheF8urxoOqdKUJrYrjuXlfjtpMtsE

extension:
qQZ98vYOWMJuXhHp

As a result Zoom cloud recording https wrong filename and extension. instead of original filename for example GMT20230119-212611_Recording_avo_640x360

without .qQZ98vYOWMJuXhHp - html with “invalid download Key (-1)” text error as expected

SOLVED via Function Node:

items[0].binary.data.fileName = ‘newName’
items[0].binary.data.fileExtension = ‘mp4’

return items;

Update - if video about 214 MB or above - Invalid array length on youtube even though all previous settings have been made and the name of the binary has been changed.

Checked - that’s similar error
Upload videos to YouTube resolved in 0.179 hmmm strange.