Export CSV with search


I’m trying to export CSV with search but it’s failed without error in backend.
The export work well without search. I use the default export route.

UI message:

Client console log:

Client network response header log :

HTTP/1.1 200 OK
X-Powered-By: Express
Access-Control-Allow-Origin: https://app.forestadmin.com
Vary: Origin
Access-Control-Allow-Credentials: true
Content-Type: text/csv; charset=utf-8
Content-disposition: attachment; filename=intervenants.csv
Last-Modified: 1650559255074
X-Accel-Buffering: no
Cache-Control: no-cache
Date: Thu, 21 Apr 2022 16:40:55 GMT
Keep-Alive: timeout=5
Transfer-Encoding: chunked
Sozu-Id: ###HIDE

Hi @Justin_Martin :wave: can you give me your project name and the agent type and the version what you use. :pray:

  • project name: click-and-care-backoffice
  • env: preprod
  • user-agent:
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36

I’m on Brave: version 1.37.116 Chromium: 100.0.4896.127 (Build officiel) (arm64)

Hi @Justin_Martin,

Do you have any error logs on your server :thinking: ?

No, it’s seem to be only on client side

Do you have any special characters in the data you are trying to export ? Like unicode or something like that ?

No, just i have lot of data around 200k records i tried to export

Did you try exporting just a few records to see if it works ?

Ok i got it.

I created a class named RelatedRecordsGetter to use the include options when sequelize fetching data. But i forgot to create a RelatedRecordsExporter which use the my RelatedRecordsGetter… instead of RecordsGetter used in RecordsExporter. So without my custom implementation of RecordGetter my collection did not manage some of my smart fields. But it still strange i haven’t error log in server side