Skip to content
Back

[SOLVED] build dart function not support china

  • 0
  • Functions
joser
8 Nov, 2023, 09:43

Publishing a function deployment on your own Appwrite server will give an error

Docker Error: Preparing for build ... Resolving dependencies... It looks like pub.dartlang.org is having some trouble. Pub will wait for a while before trying to connect again.

TL;DR
[SOLVED] The issue with the build dart function not supporting China has been resolved. The solution is to manually configure some settings, including setting a variable in the method. Alternatively, you can configure a mirror by following the instructions in this link: https://docs.flutter.dev/community/china. If you are experiencing a Docker error related to resolving dependencies, it could be due to trouble with pub.dartlang.org. Pub will automatically retry connecting after a certain period of time.
ideclon
8 Nov, 2023, 13:13

Can you ping/connect to pub.dartlang.org?

joser
9 Nov, 2023, 00:43

I can not

D5
9 Nov, 2023, 08:47

I think you will need then to manually download dependencies, etc throught another way

ideclon
9 Nov, 2023, 10:03

It looks like you’ll have to configure a mirror - https://docs.flutter.dev/community/china

ideclon
9 Nov, 2023, 10:05

You’ll need to see some envvars, and it looks like you’ll have to build Flutter manually, or something?

ideclon
9 Nov, 2023, 10:05

It’s probably possible for Appwrite to integrate this into the runtime

ideclon
9 Nov, 2023, 10:05

But until that happens, you’ll need to do some manual configuration

joser
10 Nov, 2023, 00:56

Yes, I solved it now by setting the variable in the method

Drake
13 Nov, 2023, 21:14

[SOLVED] build dart function not support china

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