question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xlsx is crashed after upload but csv is fine

See original GitHub issue

For xlsx file, after I upload, the file size increase from 16kb to 24kb, and pop up error when I try to open it Excel cannot open the file ’xxxx.xlsx’ because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.

For csv file, the file size does not change and csv files are able to be opened.

Anyone has any thought?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JingBluestonecommented, Sep 10, 2021

I figured it out yesterday. Forgot to add multipart/form-data in Binary Media Types for api gateway. It is my fault. Thank you for your help.

0reactions
jaydensericcommented, Sep 9, 2021

I just tested uploading a ~33 KB .xlsx file with the Apollo upload examples app and GraphQL API, and it works perfectly fine.

I’m not sure what your problem is, but there is something problematic about your particular project code, dependencies, or environment. As previously mentioned, AWS Lambda is not specifically supported by this project as it doesn’t properly support streaming multipart requests.

If you want to persevere, try a process of elimination. Use the browser network inspector to make sure that the client is sending a valid GraphQL multipart request. Try using a regular Apollo Server instead of the Lambda version, etc.

Whatever you find the problem to be, share it here! I’m interested to hear the answer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSV causes Excel to crash
In Excel 2010, user happily working on several .xls & xlsx files, but when she loads a .CSV from any source Excel kind...
Read more >
Pandas cannot open an Excel (.xlsx) file
The latest version of Pandas supports xlsx files. I had this error on 1.1.4 and after upgrading to 1.3.5 pip install --upgrade pandas....
Read more >
XLSX to CSV , incomplete conversion
I have a set of excel files that are being delivered to an SFTP folder. It is a very simple process where the...
Read more >
I have trouble opening CSV files with Microsoft Excel. Is ...
There are Three Solutions · Change the CSV file extension to TXT (when you open a TXT file with Excel it will start...
Read more >
How to read large excel xlsx files in Uipath - Studio
Hope you have a clear idea on how to solve the issue. After reading the excel .xlsx file If I want to write...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found