after a problem with the migration i decided star over, but im finding this problem in the 1.5.4 version...
TypeScript
-H 'accept: */*' \
-H 'accept-language: en-US,en;q=0.9,es;q=0.8' \
-H 'content-type: application/json' \
-H 'cookie: __stripe_mid=84df1ae6-e56d-4c82-81cc-9174838cbf5378066d; a_session_console_legacy=eyJpZCI6IjY2MGUyMDc3NTMxMDg1ZmJhNjczIiwic2VjcmV0IjoiZmY5MTRkYjJlMjI2N2MzYjI4MjhlZDI1NGIzZDUzYTYyZGVkMGJkMzRjZjA0ZjRmMWMwY2M3NmY0MzYxYzZhM2ZmZjE3NjQyNDc4NGQ5NDgyMGUxMGI2NjdiODUyYjUxYjFhMmI2MmRmMGZlNmVkNjhjYTliYzNhNGI1M2UzNzI4MmE1YmFlNjM1NmVhNzU4NDJjNzgyYTQ1NGMzZmRlMzI5ZmU0OWM5MDFhNjIxZmEyNWY0NzM5NjVkZjJkYjBmNzAzNWNiY2NlOWM0ZDhkYTRkZDFhYTZjNzhlNDNiZThjMzllZjk5MjM4ODJjMGRjMTE2ODAwYzhkNGJlODUwNSJ9' \
-H 'origin: https://url' \
-H 'referer: https://url/register' \
-H 'sec-ch-ua: "Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
-H 'x-appwrite-project: console' \
-H 'x-appwrite-response-format: 1.5.0' \
-H 'x-fallback-cookies;' \
-H 'x-sdk-language: web' \
-H 'x-sdk-name: Console' \
-H 'x-sdk-platform: console' \
-H 'x-sdk-version: 0.6.1' \
--data-raw '{"userId":"661d9dd8003876ef72e4","email":"bla@bla.com","password":"pass","name":"user"}'```
{"message":"Server Error","code":500,"type":"general_unknown","version":"1.5.4"}
TL;DR
Developers are encountering a 500 error on registration due to deprecated DateTime constructor and a countable array error in the Appwrite container logs. The issue persists in version 1.5.4 even after restarting. The error message received when attempting registration is "Server Error."and in the appwrite container logs...
TypeScript
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /usr/src/code/src/Appwrite/Auth/Auth.php on line 393
[Error] Timestamp: 2024-04-15T21:36:25+00:00
[Error] Method: POST
[Error] URL: /v1/account
[Error] Type: TypeError
[Error] Message: count(): Argument #1 ($value) must be of type Countable|array, null given
[Error] File: /usr/src/code/app/controllers/shared/api.php
[Error] Line: 292```
Recommended threads
- Redis with user/pass doesn't work NO_AUT...
When trying to externalize my redis to a valkey server, i saw the user/pass doesn't work. After looking the appwrite code, i saw some of the init does not pass...
- Export, Import or Migration giving this ...
As you can see in yhe screenshot i am not able to export any data or export the data from tables. Also it is affecting the migration from appwrite to appwrite h...
- local (self-hosted) sites issues
setup: - `composer run installer:dev` issues - Getting error when visiting the site ```Synchronous function execution timed out. Use asynchronous execution in...