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.

Paimon.moe exported Excel file has different mimetype than it expects while importing the files

See original GitHub issue

In the process of trying to convert my Wishes from Genshin-wishes into Paimon.moe I noticed that Paimon.moe can’t seem to import its own exported Excel files, due to it restricting imports to a different mimetype than it exports to.

Environment Tested

  1. Chrome 91, Manjaro Linux
  2. Chrome 91, Android 11
  3. Chrome 90, Android 10

Steps to Reproduce

The following is done on a fresh account for reproducibility.

  1. Auto-import some wishes into Paimon.moe
  2. Export all the wishes from settings
  3. Try to import that same .xlsx into Paimon.moe by either dragging an exported file back into the import interface, or selecting the file manually

Expected results

The exported data will be imported into the active Paimon.moe account.

Encountered Issue

As soon as any file is dropped in or selected Paimon.moe pops up a toast saying invalid Excel file. This includes perfectly valid readable Excel files exported out of Paimon.moe merely seconds ago.

Additional Information

It seems the Excel file exported from Paimon.moe has the mimetype marked as application/wps-office.xlsx instead of either application/vnd.ms-excel or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet the latter of which the code actually checks for. The file actually exported by Paimon.moe and ExcelJS is most definitely not set to the OpenXML mimetype at all, which might an issue with ExcelJS, which I am not familiar with.

On this note, may I partly second issue #81 in that the exported file could be far simpler and not to mention smaller than an Excel file with a bunch of derived values and embedded images? A simple CSV would be so much less hassle, and Excel can open them anyway.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
TheJali7commented, Oct 16, 2021

I think there is still an issue. I couldn’t upload the CSV file from genshin-wishes to paimon.moe because there was a prompt saying “Invalid excel file”. I am on Android 11, Chrome version 92.0.4515.166. The CSV file has been attached. 700837690_wishes.csv

0reactions
Insiruscommented, Nov 5, 2021

@Insirus did you use manual input? Because there is unknown item name on the standard banner. This is a different issue, for now you can delete the unknown stuff

Nevermind, I just checked and weirdly enough it was something with my browser 😃 Everything works fine in another one and gives “unknown type” error if there’s unknown items.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export & Import Wish History #81 - MadeBaruna/paimon-moe
But then it is already a separate mechanism for the convenience of local ... Paimon.moe exported Excel file has different mimetype than it ......
Read more >
Settings - Paimon.moe
Paimon.moe can only read and write files that this site created. You can export & import your Paimon.moe data here. Export & Import...
Read more >
Resolving common problems with CSV files
Edit the imported data, save your work, and export again into CSV format if required. When to use .csv or Excel files. As...
Read more >
Why am I getting mime-type of .csv file as "application/octet ...
The cause of your issue is that the server accepting the file upload does not itself know what type of file has been...
Read more >
Partial Export/Import - LUY Documentation
If a user has only read permissions for the main export type of a partial Excel file, trying to import the file will...
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