flydelabs / flyde

🌟 Open-source, visual programming for developers. Includes a VS Code extension, integrates with existing TypeScript code, browser and Node.js.
http://www.flyde.dev/
Other
1.95k stars 47 forks source link

HTTP GET doesn't seem to work... #118

Closed everythingability closed 3 months ago

everythingability commented 4 months ago

I do this...

image

Where the URL is https://randomfox.ca/floof/

And get... (sorry can't copy out of the JSON parse node)

image

Tom

GabiGrin commented 4 months ago

Hey Tom, The response of the HTTP is a valid JSON already so you don't need to parse it. You can immediately use the "get attribute" node to extract your needed info.

See example: https://github.com/flydelabs/flyde/assets/3727015/6c72e2ac-5504-41b3-85d0-f21d255ce0c2

Let me know if that helps!

everythingability commented 4 months ago

It does. Brilliant! Thank you...

Next up... why can't I delete links between nodes? I also don't think the value bit should show/hide.

And when I've used up the two inputs on a Concat, another input should appear - and so on. Chaining multiple Concats is no way to work.

On Wed, 8 May 2024 at 07:09, Gabriel Grinberg @.***> wrote:

Hey Tom, The response of the HTTP is a valid JSON already so you don't need to parse it. You can immediately use the "get attribute" node to extract your needed info.

See example:

https://github.com/flydelabs/flyde/assets/3727015/6c72e2ac-5504-41b3-85d0-f21d255ce0c2

Let me know if that helps!

— Reply to this email directly, view it on GitHub https://github.com/flydelabs/flyde/issues/118#issuecomment-2099812136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXQFF24KK5Q4W7AD2AX3DZBG6SBAVCNFSM6AAAAABHLA5T6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJZHAYTEMJTGY . You are receiving this because you authored the thread.Message ID: @.***>

everythingability commented 4 months ago

Just a thought, but why isn't there a webserver component? And a SQLite component would be nice.

Drag it in, set its host and port... and it has a HTTP Request value that comes out. I build a HTTP Request object and plop it in the result.

If I could then somehow boil this down to a full node.js project that I could save to github and deploy to Glitch.com I'd have a great teaching / noodling / development tool. Like Prograph in the old days :-)

Thanks again

Tom

On Wed, 8 May 2024 at 09:37, Tom Smith @.***> wrote:

It does. Brilliant! Thank you...

Next up... why can't I delete links between nodes? I also don't think the value bit should show/hide.

And when I've used up the two inputs on a Concat, another input should appear - and so on. Chaining multiple Concats is no way to work.

On Wed, 8 May 2024 at 07:09, Gabriel Grinberg @.***> wrote:

Hey Tom, The response of the HTTP is a valid JSON already so you don't need to parse it. You can immediately use the "get attribute" node to extract your needed info.

See example:

https://github.com/flydelabs/flyde/assets/3727015/6c72e2ac-5504-41b3-85d0-f21d255ce0c2

Let me know if that helps!

— Reply to this email directly, view it on GitHub https://github.com/flydelabs/flyde/issues/118#issuecomment-2099812136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXQFF24KK5Q4W7AD2AX3DZBG6SBAVCNFSM6AAAAABHLA5T6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJZHAYTEMJTGY . You are receiving this because you authored the thread.Message ID: @.***>

GabiGrin commented 4 months ago

Hey Tom, Great q's and feedback as always!

GabiGrin commented 3 months ago

Hey @everythingability wondering if you had a chance to see my response - would love to know if it makes sense

everythingability commented 3 months ago

Ah thanks, and apologies, I thought I'd replied... so sorry.

I got lost in just messing about with Flyde... :-)

GabiGrin commented 3 months ago

@everythingability haha no worries :) if something there doesn't quite make sense, let me know!