Back

Invalid `specification` param: Specification must be one of:

  • 0
  • Self Hosted
  • Flutter
  • Functions
Aman Keswani
5 Feb, 2025, 10:18

I am trying to push a function to deployment from appwrite-cli to my local instance but getting the above mentioned error

TL;DR
Developers are discussing an error related to the `specification` parameter in Appwrite. The original poster is experiencing issues with pushing functions to deployment in their local instance. Suggestions include checking the `appwrite.json` configuration and ensuring the Dart runtime is available. Upgrading the Appwrite CLI version to 6.2.0 did not resolve the problem. One developer advised trying to create a new function and then repeating the procedure.
Aman Keswani
5 Feb, 2025, 10:20

@Support Please do help if anyone knows about this, I tried to upgrade my appwrite-cli to 6.2.0 as mentioned by @Joshi as it might be a version issues but having the same issue. (I was using appwrite cloud and had no issues pushing my functions there but only have these issues when using in localhost

Joshi
5 Feb, 2025, 10:23

Can you try creating a new function and then try the same procedure

Aman Keswani
5 Feb, 2025, 10:23

the one im trying to do is a new function itself

Joshi
5 Feb, 2025, 10:24

And you created that after upgrading to 1.6.1?

Aman Keswani
5 Feb, 2025, 10:24

yes

Joshi
5 Feb, 2025, 10:24

Maybe you need to migrate first. Have you executed the migrate command?

Aman Keswani
5 Feb, 2025, 10:26

My appwrite instance is also a completely fresh one so i dont think that should be the issue

Aman Keswani
5 Feb, 2025, 10:27

and yes i had tried migrating earlier when i had 1.6.0 version of appwrite, that time everything migrated except for the functions as the error was that dart runtime wasnt available,

Joshi
5 Feb, 2025, 10:39

I justed tested on my instance and it works absolutley fine

Joshi
5 Feb, 2025, 10:40

Show me your part of your appwrite.json which contains this specific function

Joshi
5 Feb, 2025, 10:40

I have never used Appwrite cloud so your json might contain some cloud specific configuration which does not exists in selfhosted

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