appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.96k stars 3.66k forks source link

[Bug]: 13KB JSON request with payload mapped from FilePicker CSV makes frontend unresponsive #29233

Open ukasiu opened 10 months ago

ukasiu commented 10 months ago

Is there an existing issue for this?

Description

When I upload 13KB CSV (1000 records * 12 characters) using FilePicker (configured dataformat as Array of objects) and use it in the POST request payload

{
    users: {{FilePicker1.files[0].data.map(row=>row.userId)}}
}

and hit run the fronted becomes unresponsive and nothing happens indefinitely.

I except the request to return it status: success/error.

The issue does not occur when using CSV file with 500 records.

Steps To Reproduce

  1. Fork https://app.appsmith.com/app/reproduction-200kb-json/page1-656856dace78e01b3808e568
  2. Upload attached CSV File 1000.csv
  3. Go to Api1 request and hit Run

Public Sample App

https://app.appsmith.com/app/reproduction-200kb-json/page1-656856dace78e01b3808e568

Environment

Production

Issue video log

No response

Version

Cloud and Self-Hosted 1.9.45

rohan-arthur commented 9 months ago

@ukasiu thank you for submitting this issue. Would you please invite support@appsmith.com as a developer to your workspace so that we get edit access?

EDIT: not needed, we created our own app and are able to see the problem

sneha122 commented 9 months ago

@ukasiu Can you please try with following snippet in API body section?

{{{
    users: FilePicker1.files[0].data.map(row=>row.userId)
}}}