
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
- Sites - Tanstack start
Hi all do we know if sites will support deploying Tanstack start?
- Email template for OTP session
The default template shown by cloud interface does not match the sent template. Also whenever I change a character on the default template, the variable matcher...
- Relationship Array
I am still having issues adding items to an relationship Array. Is this going to be fixed soon? How can I do this operation without the Appwrite UI?
