Gadget Developers

GD

Gadget Developers

Build SAAS apps alongside thousands of other Gadget developers. Get help, and offer help to others in the community.

Join

Accessing dev env's DB from one dev env to another

Is it possible to access a dev env's DB from one dev env to another? If it is, where can I find the instructions in the docs? Thank you!

Still unable to access app even after usage has been reset for the new month

Request usage unexpectedly spiked last month and the quota was used before I noticed, so I was unable to check the cause. I figured I'd just have to wait until the new month started which was in just a few days, but even now I'm still unable to access the app.
No description

Force logout ggt CLI user

Is there a way to force other ggt CLI users to logout? I think I left my home computer syncing and it's conflicting with my attempt to sync on my laptop.

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...
No description

Forwarding Shopify accessToken to external service

How can I safely get my Shopify app’s accessToken in Gadget and pass it to an external service (so that service can call the Shopify Admin API on the shop’s behalf)? I tried reading it inside an Action but it’s undefined. What’s the recommended way to access the token in Gadget and forward it (or an alternative pattern like proxying requests)?

Shopify webhook filter on shopifyOrder model not being applied to shopifyOrderLineItem model

The webhook filter on the shopifyOrder model works well however the shopifyOrderLineItem model has been getting populated with line items that have no order ID. We don't use syncing at all and a sync has never been ran for any shop in production. I can't see how these order line items are getting created. I don't see anything in the logs for them. They are not happening right away on every order. Yesterday a bunch of these no order order line items were created around 8:20pm. This makes me think some kind of reconciliation is happening by Gadget?...

Shopify model missing webhooks

Hi there, I'm trying to understand how Shopify models are configured to use webhooks. The issue is I have a shopifyOrder model, yet there are no webhooks registered whatsoever. ...

Data migration script upon deploy

Is there any mechanism for setting values into newly created fields on models upon deploying or pushing to a new environment? The Gadget AI agent recommended creating a new global action for this - just wasn't sure if there was anything baked in....

Embedded Shopify App + Web app

Hi guys! is it possible to have 2 separate frontends communicating with each other? a Shopify app and a web app. Could even be a web app iframed into the Shopify frontend.

belongs to relationship

I created a model and added a parameter with a belongs to relationship (hasMany), now I want to change it to has One relationship, but not finding any way to do so. I tried deleting the field as well, but it doesn't work.

As of 2024-04, the REST Admin API `/products` and `/variants` endpoints have been marked as deprecat

I get this error when trying to deploy a shopify app, does this mean gadget is outdated? Gadget should use the most up to date shopify api under the hood correct?

GDPR Related webhook testing

Hi, I'm trying to test the GDPR webhook using the shopify CLI like in the image attached. I see that the request is retrieved by Gadget app from the debug logs. But, I don't see anything else, I don't see the shopifyGdprRequest model data too. My logic is just to log every GDPR request happen. My app is: https://leaf-answers.gadget.app/edit/development/files/api/models/shopifyGdprRequest/actions/create.ts...
No description

Card declined or not accepted in pro plan payment

Hi, I keep on getting that my card is declined whenever I try to add my card to gadget. Are there any specific card types to use. We previously uses Visa and Discover

Preview is not loading

Hey - I'm trying to preview stores with the app installed but it doesn't load because the shopcontext.jsx and hostcontext.jsx doesn't seem to work inside the embedded preview. Same in development as and in production. Works fine on other stores using react context providers for hooks in the templates. Once I tried using a useFindFirst for the embeddedApp in app.jsx but then it just complained about host not being provided (in the index.jsx loading after loading app.jsx). I don't want to have to refactor the app since I like having the context providers. What can I do?...
No description

We are running out of credits and we want invetigate why that it happening

Hi team, I noticed something concerning with one of the stores. It has around 10k records for shopifyCollect, but the sync for this single shop took about 19 hours of our request time. I want to understand: ...

Error message while loading

Hi, I'm trying to understand how to remove/replace the error message while the app is loading. This is not an error, it's just the time it takes to ingest data from an external API. The error is "Error al cargar los datos. No se pudieron cargar los datos de invitations. Error: API returned unknown: [GraphQL] signal is aborted without reason." ...

How to use shopify admin API using external Gadget API

I'm currently using Cloudflare to process webhooks and the Gadget client to access the Gadget API externally. My plan is to fetch the Shopify access token using the Gadget API and then authenticate a Shopify client. Is there a more efficient way to achieve this?

Payment error message and deployment issue

I am trying to deploy and get this error in CLI. Then when I went to gadget.app i see that this payment error message, even though I got charged succesfully yesterday. I tried updating my card and it's still the same. Don't know if these two things are related at all.
No description

(new) Dev Dashboard

Hey peeps.. I have a question and I've tried to search this out myself.. apologies if I've completely missed something but is it possible to connect to and deploy to the new Shopify dev dashboard rather than the partner portal? This is for an internal app build - not for publishing ever. Thanks!