Back

Errors Using Custom Domain on 1.4.0

  • 1
  • Web
Drake
30 Aug, 2023, 21:09

Errors Using Custom Domain on 1.4.0

TL;DR
Issue: The user is experiencing errors when using a custom domain on version 1.4.0. They have tried a solution provided by someone else but it did not work. Solution (proposed by another user): Run the following commands: ``` docker compose exec appwrite sed -i 's/getRoute()->label/getRoute()?->label/g' app/controllers/general.php docker compose restart appwrite ``` Additional requests: The user asks for screenshots of the logs and also asks the other user to run `docker compose logs -f appwrite` to create some space. They also ask for the docker logs for failed document
Kenny
30 Aug, 2023, 21:09

Sounds good :) Thanks for being so responsive

Drake
30 Aug, 2023, 21:12

actually wait...can you share the docker logs for one of the failed documents api calls?

Kenny
30 Aug, 2023, 21:15

Here are the logs right after going to the site that throws the errors

Drake
30 Aug, 2023, 21:23

what site?

Kenny
30 Aug, 2023, 21:27
Drake
30 Aug, 2023, 21:28

can you maybe try to trigger 1 request only and get the log for that 1 request?

Kenny
30 Aug, 2023, 21:30
Drake
30 Aug, 2023, 21:33

please run docker compose logs -f appwrite and then press enter a bunch of times to create some space

Drake
30 Aug, 2023, 21:33

let me know once you've done that

Kenny
30 Aug, 2023, 21:34

done

Drake
30 Aug, 2023, 21:35

k now please share screenshot of the logs

Kenny
30 Aug, 2023, 21:35
Drake
30 Aug, 2023, 21:36

again?

Zeke(Jafesu)
30 Aug, 2023, 21:37

I am seeing the same issue:

TypeScript
2023-08-30T21:37:14.377301536Z [Error] Type: Error
2023-08-30T21:37:14.377306618Z [Error] Message: Call to a member function label() on null
2023-08-30T21:37:14.377310760Z [Error] File: /usr/src/code/app/controllers/general.php
2023-08-30T21:37:14.377315005Z [Error] Line: 50```
Kenny
30 Aug, 2023, 21:38
Drake
30 Aug, 2023, 21:51

ok can you try this?

TypeScript
docker compose exec appwrite sed -i 's/getRoute()->label/getRoute()?->label/g' app/controllers/general.php
docker compose restart appwrite
Zeke(Jafesu)
30 Aug, 2023, 21:53

that fixed it for me

Drake
30 Aug, 2023, 21:55

what cases were you seeing the error?

Kenny
30 Aug, 2023, 22:06

I will in an hour, thanks!

Zeke(Jafesu)
30 Aug, 2023, 22:10

Anything through custom domain, pulling docs, auth, even pulling it up in a web browser

Drake
30 Aug, 2023, 22:11

and it works now for you?

Zeke(Jafesu)
30 Aug, 2023, 22:12

Still doesn't work just going to the custom domain in browser, but it works in my app

Drake
30 Aug, 2023, 22:14

ya i think this will be the expected behavior

Kenny
30 Aug, 2023, 22:56

This fixed my issue

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more