-
Notifications
You must be signed in to change notification settings - Fork 3
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
NodeOperationError: Unknown input file type. #7
Comments
Hello @JV300381! Sorry to hear you're having issues with the node. I had it a long time ago too. I'll take a look in a few hours. In the meantime, could you please check #1, see if your issue looks the same as that one, and maybe try to use the DOCX file linked there, https://github.com/carboneio/carbone/raw/master/examples/movies.docx? That one comes directly from Carbone. Use Also, your version of N8N is slightly old. Not too much, they're on 1.58 or so now, and whatever issue I had mysteriously fixed itself before the version that you're running now, but it may have something to do with that, because the way in which binary files are provided to custom nodes such as this one is performed by the core skeleton of N8N. Just as a question, perhaps you may be able to consider upgrading? The folks at N8N release some really cool features fairly frequently (https://github.com/n8n-io/n8n/releases). Otherwise, don't worry, I'll fix this issue on the plugin itself anyways. Thanks for reporting the issue! |
Hello @jreyesr, Thank you for taking time to look into the issue. I have tried the steps you suggested, but without any success. 1/The movies.docx file downloaded has the same issue. As you rightly pointed out, the issue is happening before any rendering is performed. For some reason or another, it doesn't seem to detect the docx file. I have tried over version ODT, Excel. But it seems it is still looking for docx. (Binary property "data" should be a DOCX (Word) file, was application/vnd.oasis.opendocument.text instead or Binary property "data" should be a DOCX (Word) file, was application/vnd.openxmlformats-officedocument.spreadsheetml.sheet instead) 2/I have upgraded my version to 1.58.2 and the issue still persists. 3/I have changed the node option from Render to Convert to PDF, using the same flow as before. This completes successfully but producing a pdf which doesn't make any sense. The docx error doesn't happen in this instance. |
Hello again! I've made some changes to the node, so that now it hopefully works. This bug is especially nasty because I can't reliably replicate it (I have seen it on one N8N instance that I manage, but not on the development instance where I would be able to test the solution). It works for me™, but it also worked before on this instance, sooo... If you could test the new version, that'd be much appreciated. To do so, uninstall the Carbone custom node (on http://localhost:5678/settings/community-nodes or the corresponding URL), and then reinstall it, but use It will install an "outdated" version of the plugin, but that's OK. Don't click the Update button, because it'll revert to the version that you have now: Then, restart your N8N instance (that seems to be important, otherwise you won't see the changes) and try to run your workflow again. Does it work now? Or does it have the same error? If it still fails, could you please check the N8N logs? If you're launching N8N by running Notice how at the end there are two lines that say |
Oh, by the way, a small comment that is mostly unrelated to this issue. I see that you're setting What they call Data is our Context, and those fields don't have Just wanted to point that out, since otherwise you'll see blank spaces in the rendered document. |
Hello, I'm experimenting with the carbone js node and getting an error in the topic.
|
Hello @Vladimir-Va! I've moved your question to Discussion #8, to keep this issue #7 focused on the |
Hi @jreyesr, Installing the version provided, fixed the issue. content = UEsDBBQABgAIAAAAIQDfpNJsWgEAACAFAAATAAgC... Thank you for clarifying the Context bit :-) |
@JV300381 That's great to hear! I think that the node was using an old (older than N8N's v1.0) way of accessing binary data, and that must have become obsolete (though only under certain configurations of N8N) at some point. I've released v1.1.2, N8N should already be prompting you to update, or it should do it soon: Please let me know if you find any issues with that version. You shouldn't, since the code is the exactly same as what you've already tested |
Hi,
I am currently trying out the extension.
I have created a simple flow that reads a .docx file and hardcoded the value to be passed to the template in the Cardone node, e.g
{"d.firstname":"JOHN"}
However, it keeps showing the issue below:
Node type: n8n-nodes-carbonejs.carboneNode
Node version: 1 (Latest)
n8n version:1.51.1 (Self Hosted)
Error cause
NodeOperationError: Unknown input file type. It should be a docx, xlsx, pptx, odt, ods, odp, xhtml, html or an xml file at Object.execute
template.docx
demo.json
The text was updated successfully, but these errors were encountered: