Are you facing this with any other function as well? (the stuck processing)
Can we, in the meantime, try one thing and use the same generated GitHub repo to create another function?
yes i made another project using discord bot function template, i added proper env values but it didnt worked
the discord bot one went through, it says its deployed but my bot is not coming online
I mean the prompt chatgpt repo
Can you try and import that as a function rather than going through templates?
oh ok imma go try do that
Are you getting any failures in the error logs of the discord bot function?
but idk why its just happening to me like during yesterdays workshop, i was following along. your project was deployed and was up and running perfectly
it says build finished but when i open the deployment link, it says {"error":"Invalid request signature"}
Instead of the build logs, let's go to the Executions tab once. We should have logs there for each execution of the function.
and on the executions tab of chat gpt app, logs and errors are empty
@Skidee are you sending in the necessary headers as well in your POST request here?
https://github.com/appwrite/templates/tree/main/node/discord-command-bot
Does the Errors tab show a log?
nope
oh let me see
Wait with the newly generated function, did you add both the Environment Variables?
yes i rechecked the environment variables i even generated a new token then replaced it with old one just too see if it work by doing that but the bot didnt came online
also just tried redoplying the chat gpt project once more it still giving this alert
I'm afraid I'm a bit stumped there
Are you okay updating your function? We can add an additional error log there once in the catch block to get a more specific error message
yea sure
@Aditya Oberai you got the api key from this page right? or am i using the wrong key
Yes, that's right
i did this but not the getting logs
console.log would not work directly like that
We have a dedicated logging function for this purpose
Here you can see https://appwrite.io/docs/products/functions/development
Recommended threads
- Cloud function deployment failures
When I run appwrite push functions, select the function I want to deploy, confirm with a YES, is starts deploying but goes into error. I need to repeat the ste...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...