sebachuba
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":"[email protected]","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." sebachuba
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
- Connection reset by peer (0) error
My code worked fine yesterday, didn’t touch anything and now tried to login in the app I’m working on and just keep getting this error : Exception: Error initi...
- Anyone else encountered Uncaught (in pro...
I am trying to upload an image to my self-hosted version of Appwrite, everything is setup as they have specified on the docs, however when I test it out, I get ...
- Could not find user session: app.<projec...
Hello, **Error** : Could not find user session: [email protected] (role: applications) missing scope (account) I have this ...