Are you facing this with any other function as well? (the stuck processing)
Prompt ChatGPT Function Not Working
Votes
0
Replies
24
Participants
Unknown
Messages
25
Can we, in the meantime, try one thing and use the same generated GitHub repo to create another function?
Rank 1: Thread
yes i made another project using discord bot function template, i added proper env values but it didnt worked
Rank 1: Thread
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?
Rank 1: Thread
oh ok imma go try do that
Are you getting any failures in the error logs of the discord bot function?
Rank 1: Thread
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
Rank 1: Thread
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.
Rank 1: Thread
Rank 1: Thread
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?
Rank 1: Thread
nope
Rank 1: Thread
oh let me see
Wait with the newly generated function, did you add both the Environment Variables?
Rank 1: Thread
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
Rank 1: Thread
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
Rank 1: Thread
yea sure
Rank 1: Thread
@Aditya Oberai you got the api key from this page right? or am i using the wrong key
Yes, that's right
Rank 1: Thread
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