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

Cannot Enter Store API Key on Self-Hosted LangFlow Instance #1915

Closed
arzbk opened this issue May 17, 2024 · 1 comment
Closed

Cannot Enter Store API Key on Self-Hosted LangFlow Instance #1915

arzbk opened this issue May 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@arzbk
Copy link

arzbk commented May 17, 2024

Describe the bug
When copy and pasting my generated API key from the store website, I get a fairly cryptic error stating "Fernet key must be 32 url-safe base64-encoded bytes". Seems like it's expecting encoded byte data and not text.

Browser and Version

  • Chrome Version 124.0.6367.209 (Official Build) (64-bit)
  • Firefox Version 125.0.3 (64-bit)

To Reproduce
Steps to reproduce the behavior:

  1. Generate a key on the store website.
  2. Copy the key.
  3. Open local LangFlow instance.
  4. Click "Store" to open store.
  5. Click "API Key" button (is in red since no key set).
  6. Paste API key from store.
  7. Click save. Error message appears and quickly goes away. No API access - cannot use store.

Screenshots
image

Additional context

Running Python 3.9.18.

I'm also seeing many errors in the command prompt window that stays open after launching the UI. See example below - they all look almost exactly the same... complaints about unsupported operand and invalid type conversion... am I using an unsupported Python version maybe?

>> from langchain_community.embeddings import VertexAIEmbeddings

  warn_deprecated(
[05/17/24 16:01:28] ERROR    2024-05-17 16:01:28 - ERROR    - directory_reader - Error while      directory_reader.py:79                             loading component: 400: {'error': 'Invalid type convertion. Please
                             check your code and try again.', 'traceback': 'Traceback (most
                             recent call last):\n  File
                             "C:\\Users\\raisbecka\\AppData\\Local\\Programs\\Python\\Python39\\l
                             ib\\site-packages\\langflow\\interface\\custom\\utils.py", line 311,
                             in build_custom_component_template\n
                             add_base_classes(frontend_node,
                             custom_component.get_function_entrypoint_return_type)\n  File
                             "C:\\Users\\raisbecka\\AppData\\Local\\Programs\\Python\\Python39\\l
                             ib\\site-packages\\langflow\\interface\\custom\\utils.py", line 75,
                             in add_base_classes\n    base_classes =
                             get_base_classes(return_type_instance)\n  File
                             "C:\\Users\\raisbecka\\AppData\\Local\\Programs\\Python\\Python39\\l
                             ib\\site-packages\\langflow\\utils\\util.py", line 189, in
                             get_base_classes\n    result = \n  File
                             "C:\\Users\\raisbecka\\AppData\\Local\\Programs\\Python\\Python39\\l
                             ib\\typing.py", line 711, in __getattr__\n    raise
                             AttributeError(attr)\nAttributeError: __name__\n'}

Other than the store not working because of this API issue, I love this tool. Great work guys! UI is a beaut too.

@dosubot dosubot bot added the bug Something isn't working label May 17, 2024
@arzbk
Copy link
Author

arzbk commented May 17, 2024

Nevermind... I see this requires Python 3.10+. I was on 3.9. Whoops!

@arzbk arzbk closed this as completed May 17, 2024
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

1 participant