Skip to content

Importer failures are silent #26268

@cathysarisky

Description

@cathysarisky

Issue Summary

I'm importing huge lists of authors into Ghost, by uploading a json file (or a zip containing a json file, depending on the day). Unfortunately, if an email address fails validation, the export fails silently, with no useful error either on the console or in the error email that is sent. The same thing happens if the bio is too long. All I get is this, once per problem:

(node:916) Warning: a promise was rejected with a non-error: [object Array]
It's nearly impossible to find and fix import file problems without a useful error message.

Steps to Reproduce

Try to upload a .json file containing an invalid email address or a too-long author bio.

Expected: A useful error message about why the user fails validation, or even just which user fails validation.

Ghost Version

Ghost Pro

Node.js Version

Ghost Pro

How did you install Ghost?

Ghost Pro

Database type

MySQL 8

Browser & OS version

NA

Relevant log / error output

Code of Conduct

  • I agree to be friendly and polite to people in this repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[triage] something behaving unexpectedlycommunity[triage] Community features and bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions