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

langflow API Request, Body not able to pass array. #4886

Closed
irshadmb opened this issue Nov 27, 2024 · 8 comments
Closed

langflow API Request, Body not able to pass array. #4886

irshadmb opened this issue Nov 27, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@irshadmb
Copy link
Contributor

Bug Description

langflow API Request, Body not able to pass array.

Reproduction

  1. Not able to pass array, example ["Ball", "Bat"]

Expected behavior

Need to pass JSON key, value as well as array.

Who can help?

No response

Operating System

Docker

Langflow Version

1.1

Python Version

None

Screenshot

No response

Flow File

No response

@irshadmb irshadmb added the bug Something isn't working label Nov 27, 2024
@anovazzi1
Copy link
Contributor

hey @irshadmb thanks for the feedback, can you please explain exactly what are you trying to do?

@irshadmb
Copy link
Contributor Author

I am using a API request, in body I want to pass json array as given in example like ["bat", "ball"] but in API request component I am unable to add it allows only json key, value pair.

@anovazzi1
Copy link
Contributor

which endpoint are you using?

@irshadmb
Copy link
Contributor Author

I have my own api endpoint which will accept json array in body and return some json which I want to use in Langflow to push to a vector db.

@irshadmb
Copy link
Contributor Author

irshadmb commented Nov 28, 2024

Hi @anovazzi1
Sample postman
image

How do i edit body as array
image

Which is stating i can add array :
image

@anovazzi1
Copy link
Contributor

@irshadmb now I understood, that's really a bug, we will fix it, thanks for the feedback

@anovazzi1
Copy link
Contributor

fixed in #5122

@irshadmb
Copy link
Contributor Author

Thanks @anovazzi1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants