n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
45.7k stars 6.36k forks source link

Import Workflow from URL #5421

Closed JabSYsEmb closed 1 year ago

JabSYsEmb commented 1 year ago

I do believe there is something wrong with importing a workflow from URL since whatever URL I am entering I got an 'invalid URL' error.

I did check the documentation I didn't find any example about this issue or if there is a specific valid URI!

I have a web server that serves a workflow as JSON file, I tried to import the workflow as a file it worked but the n8n isn't obtaining the JSON from the URL.

I have both n8n and web server running locally on my machine.

Recording 2023-02-09 at 00 29 44

Joffcom commented 1 year ago

Hey @JabSYsEmb

It should be a json file in the url, can you try with the link below and let me know if it works.

https://raw.githubusercontent.com/n8n-io/n8n/master/packages/nodes-base/nodes/ExecuteCommand/test/workflow.json

JabSYsEmb commented 1 year ago

Hey @Joffcom,

Thanks, it worked adding ".json" will make the url valid. May we have a placeholder showing how a valid url look like or better error?

I can help with that if you can point me to where I have to look because I still new to this project I didn't get head around it yet

Joffcom commented 1 year ago

Hey @JabSYsEmb,

Possibly worth doing or adding it to the documentation although using a file was my first thought. I will get a doc update sorted out later today or tomorrow.

For now though as there is no bug here I am going to mark this one as closed.