langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Unable to call an API on the custom component

Open YashPatawari opened this issue 1 year ago • 1 comments

Bug Description

I created a custom component which calls an external API with all necessary auth variables defined but I get either an API key error when I use the SDK or 401 (unauthorized) when I use the requests library.

The API works independently on other scripts but when I use the custom component, it gives me the error.

Is there any way to solve this?

Reproduction

Calling any endpoint on the custom component.

Expected behavior

I am only returning success or fail as the output message for the playground so I think that is what is expected.

Who can help?

No response

Operating System

Mac OS

Langflow Version

1.1.1

Python Version

3.10

Screenshot

No response

Flow File

No response

YashPatawari avatar Nov 30 '24 02:11 YashPatawari

Makes sense to me 👍🏻

abey79 avatar Nov 28 '24 19:11 abey79