burakcbdn
I updated from version 1.3.8 to 1.5.7, there was no problem while updating. But after update I ran migrate command and got this error.
TypeScript
Fatal error: Uncaught TypeError: Utopia\DSN\DSN::__construct(): Argument #1 ($dsn) must be of type string, null given, called in /usr/src/code/app/cli.php on line 103 and defined in /usr/src/code/vendor/utopia-php/dsn/src/DSN/DSN.php:54
Stack trace:
#0 /usr/src/code/app/cli.php(103): Utopia\DSN\DSN->__construct(NULL)
#1 /usr/src/code/src/Appwrite/Platform/Tasks/Migrate.php(95): {closure}(Object(Utopia\Database\Document))
#2 /usr/src/code/src/Appwrite/Platform/Tasks/Migrate.php(34): Appwrite\Platform\Tasks\Migrate->action('1.5.7', Object(Utopia\Cache\Cache), Object(Utopia\Database\Database), Object(Closure), Object(Utopia\Registry\Registry))
#3 /usr/src/code/vendor/utopia-php/cli/src/CLI/CLI.php(320): Appwrite\Platform\Tasks\Migrate->Appwrite\Platform\Tasks\{closure}('1.5.7', Object(Utopia\Cache\Cache), Object(Utopia\Database\Database), Object(Closure), Object(Utopia\Registry\Registry))
#4 /usr/src/code/app/cli.php(216): Utopia\CLI\CLI->run()
#5 {main}
thrown in /usr/src/code/vendor/utopia-php/dsn/src/DSN/DSN.php on line 54
TL;DR
The developers encountered an Uncaught TypeError after updating from version 1.3.8 to 1.5.7 and running a migrate command, resulting in a fatal error with type string. The error occurred due to passing null instead of a string in the DSN constructor on line 103. The suggested inquiry was whether there was a direct upgrade from 1.3.8 to 1.5.7. darShan
Did you jump directly from 1.3.8 to 1.5.7?
Recommended threads
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...