Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nova experienced an unrecoverable error. #79

Open
khawala opened this issue Nov 5, 2023 · 5 comments
Open

Nova experienced an unrecoverable error. #79

khawala opened this issue Nov 5, 2023 · 5 comments

Comments

@khawala
Copy link

khawala commented Nov 5, 2023

hello all i got this error when i try to upload the csv file i don't know why it was work before
Nova experienced an unrecoverable error.
local.ERROR: foreach() argument must be of type array|object, null given {"userId":1,"exception":"[object] (ErrorException(code: 0): foreach() argument must be of type array|object, null given at ...\vendor\laravel\framework\src\Illuminate\Http\Resources\ConditionallyLoadsAttributes.php:20)

@simonhamp
Copy link
Owner

@khawala Please if you can share:

  • the relevant CSV import code (if you've customised the importer)
  • a sample of the CSV data you're trying to import (be sure to anonymise any personal data of you or your users etc)
  • any relevant DB migrations
  • the model and Nova resource classes that you're importing the data into

It's only possible to investigate these issues with all of this.

@khawala
Copy link
Author

khawala commented Nov 6, 2023

@simonhamp
hello sir this package was work with me before now whatever i choose as a csv file only after i click on upload and config
image
i got this error
image
i don't have any customization in the import class
and this is the csv file
users.csv

@prakhargvp
Copy link

prakhargvp commented Nov 7, 2023

I'm also getting same issue and not able to find uploaded file in storage directory.

CleanShot 2023-11-07 at 06 52 17

@khawala
Copy link
Author

khawala commented Nov 12, 2023

any update

@Bibesko
Copy link

Bibesko commented Dec 6, 2023

Because you have some error on one of the resources. Open the log file on the project and see what it is about, or add public static $canImportResource = false; foreach resource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants