Hello,
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 can you give me your project name and the agent type and the version what you use.
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)
vince
April 25, 2022, 8:16am
4
Hi @Justin_Martin ,
Do you have any error logs on your server ?
No, it’s seem to be only on client side
vince
April 25, 2022, 8:39am
6
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
vince
April 26, 2022, 7:41am
8
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