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

b2b company filling in orders and drafts

I'm noticing that b2b data isn't showing up on drafts and orders in the data models right away, looks lik eit might only be filled in by the nightly sync. Anybody else see that?

Unable to deploy

Hi team, I'm trying to deploy my app but the process is crashing during the "building frontend assets" phase. I don't see any errors in the logs, just "retrying: uploading production frontend assets to CDN" (trace id: e3d7b530486f3b69ccc81ace3b938c41)...
No description

Managing Store-Specific Cron Jobs for Abandoned Cart Recovery

I need to create cron jobs that run a script to recover abandoned carts for multiple stores. Each store has a specific time when the script should run (e.g., Store A at 12 am, Store B at 2 am, etc.). How can I efficiently manage these store-specific cron jobs to ensure the script runs at the designated time for each store?

Do proxy HTTP routes only work in production?

Building Shopify app proxy endpoints for secure data transfer. Frontend (theme extension) needs JSON data but receives HTML in all scenarios.

Differences in shopifyProduct.Update action results from webhook trigger vs Shop Sync

Struggling to understand how Shop Sync works vs a regular web hook trigger. I've added some extra fields to ShopifyProduct and added logic to the create and update actions to fill them out. Now if i create/update a product within Shopify, to trigger the web hook, these fields are filled out perfectly....
No description

GGT_PERMISSION_DENIED: Permission denied to access this resource.

What most likely the issue? Is it in the shopify admin side?
No description

Fastify rewrite URL

I am building a public API for our system using routes, and I want to set up a URL rewrite that rewrites the URL /docs to the latest version which is sitting in a folder called v1. So for example, if someone goes to the URL https://api.authentified.co/docs (which I am using AWS API Gateway to proxy the requests through to https://platform.authentified.co/REST/) I want it to rewrite to v1/docs. I can't seem to do it with a Fastify plugin, as rewriting seems to only be available at the Factory level. https://fastify.dev/docs/latest/Reference/Server/#rewriteurl At the moment it seems like a redirect is my only option, unless there's something I've missed?...

How to fetch Access Token using external API

I want to fetch access token using external API but it says: Response body: {"errors":[{"message":"Cannot query field "accessToken" on type "ShopifyShop".","locations":[{"line":23,"column":9}],"extensions":{"fromSandbox":false}}],"data":null,"extensions":{"logs":"https://ggt.link/logs/344243/7843c96fb433bd28c4a56a116b41a837","traceId":"7843c96fb433bd28c4a56a116b41a837"}}...

I need help understanding billing and teams in Gadget

Hello! I would like to upgrade the Gadget app I created form Hobby to Pro. I want to understand how the billing is done. I created this app with my company email (@nakedandthriving.com), I see it says Carlos's team. So, if my company wanted to add payment details they would need to do so from my account? Say another member at my company already has a different team. Can they add me to their existing team? And would that extend their billing plan to cover the app I've created? Not sure how this works....

GGT_APP_CRASH but I can't understand why

Hey! My "getsimio" app has this error in production - really often - but I've never managed to identify the reason. TraceId: 838da5cb8e2a9e3761bc46d88f8d70c0...

Shopify 502 on install of dev app

Has anyone seen 502 errors when installing dev apps onto dev stores through the Partner dashboard like so? These just started appearing and I'm not sure what may be causing them. Judging by the Gadget logs, the call never reaches Gadget so the logs can't tell me much....
No description

Shopify scopes and data access

Hi all, First, sorry as this is more of a Shopify question rather than a Gadget question, but I figured I could get help faster here 🤷‍♂️ My gadget app has the read_customers scope, and is connected to a draft public app. I need the first_name and last_name fields from customer, but apparently Shopify will only give access to these after I submit the app for review, which is completely weird. Is there a way around that to access these fields in development?...

shopifyStoreCreditAccount

How do I setup the sync for shopifyStoreCreditAccount?

How to detect if a merchant has added our App Block to their Shopify theme

I want to check if a merchant has actually added the App Block to their theme, like in product.json or any other section. What’s the best way to programmatically detect this?...

How long does a background action live?

If I pass an id, and onDuplicate: ignore, how long after the first occurance of the action will it not skip again? Meaning if if I call the action again with the same id, how long after the first run will it now run again?

Recover production models

Hi guys! I have 2 models in production that were outdated so I deleted them on my dev enviroment and created new ones with proper naming and schema. After deleting them I realized that by doing this instead of just renaming them it will make all the users re-add their old data (not ideal). If I set the exact same name on the new models, will they replace the old ones on production? can you help me recover my old models?...

Helptext on autotable

Is it possible to add a little helptext icon on autotable headers?

Remove custom domain

Hey gadget, please remove custom domain on "kuppel", so I can go to development edit. Thanks!

Hey folks, I'm using response.nextPage() and response.previousPage() from a paginated API

Hey folks, I'm using response.nextPage() and response.previousPage() from a paginated API ✅ response.nextPage() works perfectly — it takes me from page 1 to 2 to 3, etc. ❌ But when I call response.previousPage() from, say, page 3, it jumps directly back to page 1 instead of going to page 2. The same happens from any page — it always jumps back to the first page. ...

Error message for uniqueness validation in AutoTable

Is it possible to customize the error message ("Failed to add field!") that shows up when you add a new record that fails uniqueness validation? I'm using errors.add per the docs: https://tapestry-stitch.gadget.app/edit/dev-kalen/files/api/models/fieldMapping/validations/uniqueness.js?startLineNumber=31&startColumn=0&endLineNumber=32&endColumn=0 ...
No description