Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] - CSV Loader usable issue in Document Store

Open nmoturi opened this issue 1 year ago • 5 comments

Describe the bug A clear and concise description of what the bug is.

Process issue using the CSV loader in Document Store. Below is the error

To Reproduce Steps to reproduce the behavior:

  1. Go to '...' Document Store, Add a new Document Loader - CSV Loader with Recursive Character Text Splitter
  2. Click on '....' Process
  3. See error

[ERROR]: unhandledRejection: Invalid URL

TypeError: Invalid URL

at new URL (node:internal/url:797:36)

at parseUrl (/usr/local/lib/node_modules/flowise/node_modules/@aws-sdk/client-s3/node_modules/@smithy/url-parser/dist-cjs/index.js:29:21)

at toEndpointV1 (/usr/local/lib/node_modules/flowise/node_modules/@aws-sdk/client-s3/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js:119:41)

at customEndpointProvider (/usr/local/lib/node_modules/flowise/node_modules/@aws-sdk/client-s3/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js:239:65)

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

Process the document

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

image

Setup

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

nmoturi avatar Sep 06 '24 14:09 nmoturi

works for me: image

image

image

HenryHengZJ avatar Sep 09 '24 19:09 HenryHengZJ

Thanks, Henry. That's very strange. I have precisely the same flow. The logs indicate the below error, is there any reason why it's trying to access aws-sdk or this is normal..?

-Naran

at new URL (node:internal/url:797:36)

at parseUrl (/usr/local/lib/node_modules/flowise/node_modules/@aws-sdk/client-s3/node_modules/@smithy/url-parser/dist-cjs/index.js:29:21)

at toEndpointV1 (/usr/local/lib/node_modules/flowise/node_modules/@aws-sdk/client-s3/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js:119:41)

at customEndpointProvider (/usr/local/lib/node_modules/flowise/node_modules/@aws-sdk/client-s3/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js:239:65)

nmoturi avatar Sep 10 '24 03:09 nmoturi

I'm not sure, but does it happen only on one CSV? Can you try other CSV as well?

HenryHengZJ avatar Sep 16 '24 18:09 HenryHengZJ

Hi Henry,

I am getting the same error for any CSV and even for the PDF documents..

TypeError: Invalid URL at new URL (node:internal/url:797:36) at parseUrl @.@./url-parser/dist-cjs/index.js:29:21) at toEndpointV1 @.@./middleware-endpoint/dist-cjs/index.js:119:41) at customEndpointProvider @.@./middleware-endpoint/dist-cjs/index.js:239:65)

Thanks, Naran From: Henry Heng @.> Date: Tuesday, 17 September 2024 at 4:28 AM To: FlowiseAI/Flowise @.> Cc: Naran M @.>, Author @.> Subject: Re: [FlowiseAI/Flowise] [BUG] - CSV Loader usable issue in Document Store (Issue #3159)

I'm not sure, but does it happen only on one CSV? Can you try other CSV as well?

— Reply to this email directly, view it on GitHubhttps://github.com/FlowiseAI/Flowise/issues/3159#issuecomment-2353616795, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABZ6YB3SU6KP5DP2O4YSV4DZW4PNBAVCNFSM6AAAAABNYWGNNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJTGYYTMNZZGU. You are receiving this because you authored the thread.Message ID: @.***>

nmoturi avatar Sep 17 '24 08:09 nmoturi

This issue is resolved, I was using the S3 for blob storage and pointing to wrong endpoint Thanks, Naran

moturi12 avatar Sep 19 '24 08:09 moturi12