Back

[SOLVED] Old Cloud Functions Not Working After 1.4.2 Migration

  • 0
  • Functions
Infinil
9 Sep, 2023, 16:43

Fatal error: Uncaught Utopia\Database\Exception\Query: Invalid query: Invalid cursor: UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscore in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php:4061 Stack trace: #0 /usr/src/code/src/Appwrite/Migration/Migration.php(197): Utopia\Database\Database->find(Object(Utopia\Database\Document), Array) #1 /usr/src/code/src/Appwrite/Migration/Migration.php(154): Appwrite\Migration\Migration->documentsIterator('cache') #2 {main}

TL;DR
Title: [SOLVED] Old Cloud Functions Not Working After 1.4.2 Migration Issue: Cloud functions not working after migrating from 1.3.4 to 1.4.2, possibly due to permissions on relation collection. Solution: Check guest and read permissions in the Appwrite project. Update docker-compose.yml file. Open the full file and compare with the current docker-compose.yml. Look into the details of the PR. Resolve Fatal error: Uncaught Utopia\Database\Exception\Query: Invalid query by checking cursor length and valid characters.
Infinil
9 Sep, 2023, 16:43

btw is this resolved in 1.4.2

Infinil
9 Sep, 2023, 16:49

but which environment

Infinil
9 Sep, 2023, 16:50

just below appwrite: one?

Drake
9 Sep, 2023, 16:51

look into the details of the PR

Infinil
9 Sep, 2023, 16:53

i mean if i compare this with current docker-compose.yml then i am still not sure

Infinil
9 Sep, 2023, 16:53

am i missing the point

Infinil
9 Sep, 2023, 16:55

oh i am dumb

Infinil
9 Sep, 2023, 16:55

i can just open the full file whats wrong with me πŸ’€

Infinil
9 Sep, 2023, 16:56

appwrite-schedule got it

Infinil
9 Sep, 2023, 16:58

and regarding compose.phtml

Infinil
9 Sep, 2023, 17:00

is it possible to update that?

Drake
9 Sep, 2023, 17:12

it's helpful to learn how to use these tools

Drake
9 Sep, 2023, 17:13

this file is used to when generating your docker-compose.yml file during install/upgrade so you don't need to update that exact file.

Drake
9 Sep, 2023, 17:13

just your docker-compose.yml file

Infinil
9 Sep, 2023, 17:13

i see gotcha so i updated the yml file

Infinil
9 Sep, 2023, 17:14

and did docker compose down , docker compose up -d

Infinil
9 Sep, 2023, 17:14

i still have this listDocuments issue lemme get it brb

Infinil
9 Sep, 2023, 17:20
Infinil
9 Sep, 2023, 17:20

I checked the guest perms and read perm is still there πŸ€”

Infinil
9 Sep, 2023, 17:22

btw i have logged in from a verified account

Infinil
9 Sep, 2023, 17:28

fixed

Infinil
9 Sep, 2023, 17:28

it was because of a relation collection (gave the perrms)

Infinil
9 Sep, 2023, 17:29

probably because i directly moved from 1.3.4 > 1.3.8 > 1.4.2

Infinil
10 Sep, 2023, 07:45

[SOLVED] Old Cloud Functions Not Working After 1.4.2 Migration

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