Back

Error "Incorrect string value" when deploying functions

  • 0
  • Functions
  • Cloud
Legomaenchen
15 Oct, 2023, 11:51

Since the last Appwrite updates, I sometimes get an "Incorrect string value" error when deploying a Cloud Function. This error then causes the build process to fail.

--> Attached are two different screenshots of these errors.

When I get such an error message, I simply restart the deployment and in most cases the build succeeds on the second try.

Can anyone explain to me why this might happen and how I can prevent this non-deterministic error?

Thanks in advance for any help!

TL;DR
The user is experiencing an "Incorrect string value" error when deploying functions with Appwrite Cloud. The error is non-deterministic and only occurs on some deploys. The user has tried restarting the deployment and sometimes the build succeeds on the second try. They are unsure if the problem still exists as they do not have time to work on the project at the moment. The user is using Python 3.9 and Appwrite 4.1.0 CLI to deploy the functions. There is no solution provided in the thread.
Drake
15 Oct, 2023, 15:32

Is this Appwrite Cloud or self hosted?

Legomaenchen
16 Oct, 2023, 18:36

This is Appwrite Cloud. The Screenshots were taken in the Cloud Dashboard

Legomaenchen
16 Oct, 2023, 18:37

The files of the cloud functions were created with the old CLI. I have adjusted the code in the necessary places afterwards, but maybe it has something to do with that.

Drake
16 Oct, 2023, 21:10

@Meldiron any ideas about this? I've seen a couple instances of this problem now

Meldiron
17 Oct, 2023, 07:41

Not sure 🤔 sounds like some specific symbol cannot be stored properly. What runtime are you using? What texts do you log?

Possibly this could be some warning that is being printed by the runtime - that would explain why it's random

Drake
19 Oct, 2023, 20:19

what runtime was this?

Legomaenchen
31 Oct, 2023, 19:59

I am using python-3.9 and appwrite 4.1.0 cli to deploy the functions

Drake
31 Oct, 2023, 21:15

what do you have in your requirements.txt?

Legomaenchen
1 Nov, 2023, 21:09

only the appwrite package. I am not sure if this problem still exists as I do not have time to work on my project atm.

Legomaenchen
1 Nov, 2023, 21:11

But I find it interesting that the problem is not deterministic and only occurs on some deploys and without changes is gone again on the next one

Drake
1 Nov, 2023, 23:21

ya..it's a tricky bug...maybe a race condition with checking the logs from the container before it's ready 🧐

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