Message: After creating a function using the Functions API, the domain is not created automatically, even though the documentation says a domain should be created after each deployment.
What I did:
Connected GitHub, got the installationId and repositoryId.
Successfully uploaded the function and deployed it.
However, the domain was not created, I had to create it manually.
I also tried uploading via file (Manual), and again the domain was not created.
I checked that when I create a function via the UI, the domain is created automatically. But when using the API, I need to create the domain manually and then redeploy.
My question: Is this the expected behavior, or am I doing something wrong in my code? If this is how it’s supposed to work, that’s fine — I’ll just create the domain manually.
Code:
const myFunc = await functions.create({
functionId: ID.unique(),
name: "My Function 3",
runtime: "node-18.0",
execute: [],
scopes: ["users.read"],
installationId: "",
providerRepositoryId: "",
providerBranch: "main",
providerRootDirectory: "./",
providerSilentMode: false,
entrypoint: "src/index.js",
commands: "npm install",
})
const myDeployment = await functions.createVcsDeployment({
functionId: myFunc.$id,
type: "branch",
reference: "main",
activate: true, // optional
});
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Appwrite Storage error 503s for automate...
I'm facing error 503s from Appwrite after about 5-6 seconds of making AI requests from my tool with images and files above 20MB (=> not inline base64 used, but ...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...