Skip to content
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

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

Closed
everythingability opened this issue May 7, 2024 · 7 comments
Closed

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

everythingability opened this issue May 7, 2024 · 7 comments

Comments

@everythingability
Copy link

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
Copy link
Contributor

GabiGrin commented May 8, 2024

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
Copy link
Author

everythingability commented May 8, 2024 via email

@everythingability
Copy link
Author

everythingability commented May 8, 2024 via email

@GabiGrin
Copy link
Contributor

GabiGrin commented May 8, 2024

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

  • Removing connections - I just noticed that adds ability to select and remove connections, fixes #107 #116, which fixed issue 🐛 Bug Report: cannot remove connections  #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
Copy link
Contributor

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

@everythingability
Copy link
Author

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

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

@GabiGrin
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants