App can’t deploy

Hi, So I’ve been following this tutorial on building a Discord app with gadget but I encountered a problem when trying to deploy the app. https://m.youtube.com/watch?v=SQExQ4Onv5c&pp=0gcJCdgAo7VqN5tD At first I did forget to actually deploy it but added it to my support server already. I even used /challenge and /test and everything worked perfectly fine. Recently, I tried using the /test command only to realise the bot didn’t reply because the app was ‘paused’. And I soon realised that to have it reply, I needed the gadget browser to be opened, (not paused). I figured I missed the step of pressing ‘deploy’ when I first made it. Now when I press deploy, it’s giving me a prompt and I don’t know how to move forward from there. [Issues found. Avoid ‘Gadget development credentials’] (Picture attached) This deployment part wasn’t covered in the YouTube tutorial so I was unsure of how exactly to proceed. I figured that by pressing deploy, the app would run smoothly without me needing the gadget browser to be opened 24/7 on my pc just for me to use the discord app I made properly. But honestly I’m still not sure about it. But other than that, could anyone help me with this issue? Much thanks in advance :)
Gadget
YouTube
The fastest way to build Discord apps (with hosted Node.js and Post...
Gadget v1.0 has been released! The product has been updated and this tutorial may not work without some modifications. Please refer to our docs at https://docs.gadget.dev for the latest information. Build your own Gadget app: https://ggt.link/start-building Riley builds Discord's "Getting started" app using Gadget in under 5 minutes, then expl...
No description
13 Replies
Smelvin
Smelvin2mo ago
Hi MasteBuilder, Could you provide your app URL so that we can investigate?
MasteBuilder
MasteBuilderOP2mo ago
Hi Mark, sure thing
Smelvin
Smelvin2mo ago
When your app is in a development environment it does go to sleep after a few minutes of inactivity. Thats why you saw it not respond initially. Pushing your app to deployment would solve this. when you click deploy you can click the arrow on the right side of the issues found to read more about that issue. In this case it re-directs you to set up your Google OAuth credentials for the live app
MasteBuilder
MasteBuilderOP2mo ago
Thank you so much, but may I know how exactly to set up this Google OAuth credentials thing? Not quite sure on how to proceed ngl Once again, thanks!
Smelvin
Smelvin2mo ago
You are probably fine to skip this if its a personal bot and force deploy. I have documentation here for the set up: https://docs.gadget.dev/guides/plugins/authentication/google-oauth#setup-your-own-credentials
MasteBuilder
MasteBuilderOP5w ago
I just did the force deploy and it brought me back to page I shared above, is there any way to check if it was properly deployed? Or do you reckon I should just set up my own credentials although it’s a personal bot? Actually scratch that, something's up with Google's restrictions I’m very sure I deployed it but it’s still not responding after closing the gadget browser Bumping this in hopes that someone could help me work out on how to properly deploy this 😓
Smelvin
Smelvin4w ago
Yes you should be able to access it at my-dc-botto.gadget.app I can see at the url root page, its the templated "Fork this App" page It is deployed
MasteBuilder
MasteBuilderOP4w ago
Do I have to continuously deploy my app? Because earlier I deployed it, closed the tab and it worked. But now when I sent the command in the server again, it gave me the same text.
No description
Smelvin
Smelvin4w ago
This response is from Discord when it dosent receive a response within 3 seconds. This first command likely was the first call in a while to the app, and the app preformed a cold-boot which took longer than the 3 second response window by discord. This does happen occasionally to lower volume applications. There are a few ways around this, like pinging it to wake up, a script to keep it alive, or our keep-alive add-on to the pro-plan. It depends on the applications use case
MasteBuilder
MasteBuilderOP4w ago
Ah I see, so it’s just a little thing with it being the first call in a while? Thanks so much, I think that’ll be all since I know how to navigate my way around it now Appreciate it! 🙏
Smelvin
Smelvin4w ago
Yes that is correct Glad to be of help! I will mark this ticket as closed, but feel free to open it back up with another message.
Gizmo
Gizmo4w ago
Do you like this answer? ​

Did you find this page helpful?