-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
can't use langflow store as i can't generate api key #1646
Comments
Same here |
same here |
Hi! Do you all have access to the Langflow Store? The API key is generated there. |
@ogabrielluiz It looks like new registrations are offline, either that or the auth is broken. Whenever I try to register or login, it just loops back to the login page. I know they have been acquired by Datastax but I'd hope they wouldn't shut out new users during the transition. |
same here |
Same here |
I have assembled some notes below that may crack the code of how store API keys are used, how LangFlow interacts with a Directus instance using that API key to manage components, etc. Hopefully the following is helpful, as I tried to derive an Open API schema that can be used to perhaps provide your own store implementation. I plan to use Supabase to implement mine, using edge functions to provide the same URL resource pattern expected by this code: To provide a comprehensive analysis of the provided code, let's break it down into its components, focusing on its functionality, interaction with Directus, and how it manages the store. Afterward, I'll attempt to construct an OpenAPI 3 schema for the calls made to the Directus "store" instance. Code AnalysisOverviewThe code is a Python module designed to interact with a Directus-based store for managing components in the LangFlow application. It includes functionality for creating, querying, downloading, liking, and updating components, as well as managing user data and tags. Key Classes and Functions
Interaction with DirectusThe code interacts with Directus primarily through HTTP requests to the Directus API endpoints. It uses bearer token authentication ( OpenAPI 3 Schema Construction (Hypothetical)Given the code's functionality, an OpenAPI 3 schema for the Directus "store" instance might include endpoints for components, users, and tags. Here's a simplified example for components: openapi: 3.0.0
info:
title: LangFlow Store API
version: 1.0.0
paths:
/items/components:
get:
summary: List components
parameters:
- in: query
name: filter
schema:
type: string
description: JSON-encoded filter conditions
- in: query
name: sort
schema:
type: string
description: Fields to sort by
- in: query
name: page
schema:
type: integer
description: Page number for pagination
- in: query
name: limit
schema:
type: integer
description: Number of items per page
responses:
'200':
description: A list of components
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Component'
meta:
$ref: '#/components/schemas/MetaData'
post:
summary: Create a new component
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ComponentCreate'
responses:
'200':
description: The created component
content:
application/json:
schema:
$ref: '#/components/schemas/Component'
components:
schemas:
Component:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
description:
type: string
tags:
type: array
items:
type: string
ComponentCreate:
type: object
properties:
name:
type: string
description:
type: string
tags:
type: array
items:
type: string
MetaData:
type: object
properties:
totalItems:
type: integer
itemCount:
type: integer
itemsPerPage:
type: integer
totalPages:
type: integer
currentPage:
type: integer This schema is a simplified example and would need to be expanded based on the full Directus schema for the LangFlow store, including authentication and error handling components. Store API Key ValidationThe validation of the store API key in the provided code base is performed through a combination of methods within the Step 1: Sending a Request to DirectusThe Step 2: Analyzing the ResponseUpon receiving the response from Directus, the method checks if the response contains a user ID ( Step 3: Handling Errors and Status CodesThe method also includes error handling for HTTP status codes and other exceptions:
Code Snippet for
|
We are working getting everyone off the waitlist very soon. |
D:\2- Mine\Pro\Py\projects\AC\The_Future\Ai_Agents\ai_agents\lib\site-packages\langflow\alembic\env.py:82: SAWarning: WARNING: SQL-parsed foreign key constraint '('user_id', 'user', 'id')' could not be located in PRAGMA foreign_keys for table credential
context.run_migrations()
D:\2- Mine\Pro\Py\projects\AC\The_Future\Ai_Agents\ai_agents\lib\site-packages\langflow\alembic\env.py:82: SAWarning: WARNING: SQL-parsed foreign key constraint '('user_id', 'user', 'id')' could not be located in PRAGMA foreign_keys for table flow
context.run_migrations()
No new upgrade operations detected.
D:\2- Mine\Pro\Py\projects\AC\The_Future\Ai_Agents\ai_agents\lib\site-packages\langflow\alembic\env.py:82: SAWarning: WARNING: SQL-parsed foreign key constraint '('user_id', 'user', 'id')' could not be located in PRAGMA foreign_keys for table credential
context.run_migrations()
D:\2- Mine\Pro\Py\projects\AC\The_Future\Ai_Agents\ai_agents\lib\site-packages\langflow\alembic\env.py:82: SAWarning: WARNING: SQL-parsed foreign key constraint '('user_id', 'user', 'id')' could not be located in PRAGMA foreign_keys for table flow
context.run_migrations()
No new upgrade operations detected.
The text was updated successfully, but these errors were encountered: