flyde icon indicating copy to clipboard operation
flyde copied to clipboard

HTTP GET doesn't seem to work...

Open everythingability opened this issue 1 year ago • 4 comments

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

everythingability avatar May 07 '24 13:05 everythingability

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!

GabiGrin avatar May 08 '24 06:05 GabiGrin

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 avatar May 08 '24 08:05 everythingability

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: @.***>

everythingability avatar May 08 '24 08:05 everythingability

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

  • Removing connections - I just noticed that #116, which fixed issue #107 wasn't published! I'm publishing it to the vscode

  • value bit show/hide - which one are you referring to? I have a feeling I know what you're talking about as I feet it's too jumpy / hidden sometimes, but wanna make sure we're on the same page :)

  • concat - that's correct! at the minimum, I can make the inputs count configurable. Btw, concat is a controversial node - as it's probably better to use a bit of inline code: Screenshot 2024-05-08 at 16 05 35 it uses JS's template literals and Flyde's inline code automatic input generation (each time you use "inputs.X" an input will be exposed to achieve a custom concat. wondering about your thoughts here

  • webserver - you could wrap up a Flyde flow in a simple node.js express server pretty easily. I think that's a really mandatory tutorial I should have - or even a CLI helper to generate it, but in a nutshell, the webserver component can't be in Flyde because it needs to be "outside" of the level of the flow. Or I might come with a better solution in the future

  • SQL - there's some postgres / mongo built in nodes, but TBH they are not heavily tested. Which one are you using? would love to make sure you have the nodes you need to run stuff!

  • re: Glitch deployment - it's a great idea, especially if Glitch somehow adds support for Flyde projects. I have a https://railway.app/ be somewhat close to what you're trying to achieve, and building a more specific tool at https://www.trigg.dev to help building one-off apis with Flyde

GabiGrin avatar May 08 '24 13:05 GabiGrin

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

GabiGrin avatar May 27 '24 08:05 GabiGrin

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

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

everythingability avatar May 28 '24 11:05 everythingability

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

GabiGrin avatar May 29 '24 07:05 GabiGrin