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

[BUG] Failed to import: Error: exportImportService.importAll - Cannot read properties of undefined (reading 'length') #3919

Open
jamieduk opened this issue Jan 24, 2025 · 2 comments
Labels
question Further information is requested

Comments

@jamieduk
Copy link

Describe the bug
A clear and concise description of what the bug is.
Failed to import: Error: exportImportService.importAll - Cannot read properties of undefined (reading 'length')

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Flow
If applicable, add exported flow in order to help replicating the problem.

Setup

  • Installation [e.g. docker, npx flowise start, pnpm start]
  • Flowise Version [e.g. 1.2.11]
  • OS: [e.g. macOS, Windows, Linux]
  • Browser [e.g. chrome, safari]

Additional context
Add any other context about the problem here.
no idea how im supposed to do it, no examples given
dont close this til its solved!!!

i tried this code (json file upload / import)

{
  "nodes": [
    {
      "id": "1",
      "type": "ollama",
      "position": {
        "x": 100,
        "y": 200
      },
      "data": {
        "api_endpoint": "http://localhost:11434",
        "api_key": "NA",
        "model": "crewai-llama3.2-vision:latest",
        "parameters": {
          "temperature": 0.7,
          "max_tokens": 2048,
          "top_p": 1.0,
          "frequency_penalty": 0.0,
          "presence_penalty": 0.0
        },
        "prompt_template": {
          "input": "User: {{input}}\nAssistant:",
          "output": "{{output}}"
        },
        "logging": {
          "enabled": true,
          "level": "info",
          "path": "/root/.flowise/logs"
        },
        "cors": {
          "origins": "*"
        },
        "metrics": {
          "enabled": false,
          "provider": "prometheus",
          "include_node_metrics": true,
          "service_name": "FlowiseAI"
        }
      }
    },
    {
      "id": "2",
      "type": "end",
      "position": {
        "x": 300,
        "y": 400
      }
    }
  ],
  "edges": [
    {
      "id": "e1-2",
      "source": "1",
      "target": "2",
      "type": "default"
    }
  ]
}

@Mickeel
Copy link

Mickeel commented Jan 24, 2025

Same here, just done installation via developer by building the code and running it via pnpm start

I'm using

  • Flowise version 2.2.4
  • Node version 20.18.2

@HenryHengZJ
Copy link
Contributor

On the main dashboard, you can only import the exported file from here:

Image

Whereas in a chatflow, you can only load the exported flow from here:

Image

They are 2 different exported files

@HenryHengZJ HenryHengZJ added the question Further information is requested label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants