remcoboerma commented on issue #30584:
URL: https://github.com/apache/superset/issues/30584#issuecomment-2429224418

   Had a similar issue using superset on Yunohost. 
   This helpmed troubleshoot the error for me.
   ```diff 
   index f90708acf5..2fd0579a0f 100644
   --- a/superset/commands/importers/v1/__init__.py
   +++ b/superset/commands/importers/v1/__init__.py
   @@ -104,6 +104,8 @@ class ImportModelsCommand(BaseCommand):
            self._prevent_overwrite_existing_model(exceptions)
    
            if exceptions:
   +            import sys
   +            print('NEEDLE',exceptions,file=sys.stderr)
                raise CommandInvalidError(
                    f"Error importing {self.model_name}",
                    exceptions,
   ```
   
   Printing the exceptions that are otherwise invislble allowed me to see what 
was causing the import error (invalid data in the exported yaml file). As 
`stderr` is routed towards the service output it's viewable in the logs in 
yunohost. 
   
   It's not a solution, but solved my most urgend problem. Hope it helps 
someone else. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to