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

Ignoring enqueued action with duplicate ID

Hi, I have an action that processes some incoming webhooks from another platform. For some updates, a few come in quick succession, so I want to ignore the duplicates. I have code that uses the "id" option of enqueue so that it blocks these subsequent duplicates from getting queued. However I am still getting messages in the log when this occurs (GGT_DUPLICATE_BACKGROUND_ACTION_ID: This background action can't be enqueued as its ID is already in use by another background action.). I have tried the onDuplicateID: "ignore" option, but it does not seem to have any affect? Is there any way to suppress this message? As it just seems wasteful....

How to pass parameters from one action to another using api.enqueue()

Context: I have a multi-step CSV processing workflow with two actions: parseCsvFromFtp.ts - Initial action that processes CSV files and enqueues background jobs processCsvInBackground.ts - Background job that handles the actual CSV parsing...

Illegal invocation error calling gadget API from cloudflare worker

I wonder if anyone else has run into this. We are trying to use our Gadget client from a Cloudflare worker, and we are getting
Illegal invocation: function called with incorrect `this` reference. See https://developers.cloudflare.com/workers/observability/errors/#illegal-invocation-errors for details.`
Illegal invocation: function called with incorrect `this` reference. See https://developers.cloudflare.com/workers/observability/errors/#illegal-invocation-errors for details.`
...

Gadget Ai assistant times out after every request.

Hi, I had an issue with this a few months ago and it was checked on. And someone on the gadget team said they updated something for me. But I haven’t been able to use the gadget AI assistant in months, even if I start numerous new chats. It seems to constantly time out. Usually the timing out occurs when it’s reading over a file. But I’ve tried this with tons of different files. Reloaded, different browsers. Pretty much everything. I really wish I could use the AI assistant because it’s very ver...

Receiving so many of this error

GGT_INVALID_ACTION_INPUT: Can't run action since there are multiple shopifyDiscountCustomerGetsProduct records found with product=8533254734090, discount=1461787459850 trace id: e17de5804405314c506a31eaac368f70 app: upez ...

Still setting up...

Been trying to create a new shopify app, and when it goes to install it, it redirects me to a page that says "Still setting up This app isn't available yet because it is still setting up. Please try again in a few moments." It never finishes, and if I go back to gadget and try to install it again, i just get same message. I have tried to delete the app, and create a new one, but it always just gives me this error....

Shopify shop update webhook firing non-stop for a shop

While looking at request time usage by Shopify domains I noticed we have a shop that is taking up 7% of request time. When looking into that Shop it hasn't used the app in 6 months but the logs show that the shopifyShop update webhook is being triggered every few seconds. This Shop is an extreme outlier which makes me think this could be a bug but I'm not sure. The app is evnbttr-webhooks.gadget.app...

Ways to visualize error counts over time and drill down by text matches in logs (e.g. “bulk delete)?

We need a single graph showing total error count over time with the ability to break it down by any ad-hoc search (e.g. error stack or message contains "bulk delete"). What’s the best approach/architecture to: create a stable timeseries metric from logs/errors that match arbitrary text queries, allow fast drilldown/splitting by that query (and other fields) in dashboards? Any notes on cost/cardinality and best practises for indexing/structured fields would be helpful.

How can I capture raw Shopify webhook payloads & headers to debug a delivery surge?

We’re seeing a large spike in Shopify webhook deliveries. How should I capture the raw request (headers + body) and correlate each delivery with Shopify’s delivery metadata so we can identify retries, duplicate deliveries, or the originating app/store? We run our webhook handlers in Gadget.dev — any concise guidance, code snippets, or recommended tools for logging raw bodies, verifying HMAC, and matching X-Shopify-Webhook-Id/X-Shopify-Topic/X-Shopify-Shop-Domain to Shopify delivery logs would be...

Metrics and monitoring - built-in solution / Prometheus - feedbacks

Hello, I’m exploring ways to add metrics and monitoring to our application, ideally with Prometheus. Is there any solution or guidance you can share for doing this in Gadget?...

switching website domain

hello I have a domain i want to use for my gadget app

Guidance on combined auth (public saas + shopify connector)

Do you guys have any guides, templates, or advice on how to get an app up that can handle both non-shopify accounts as well as shopify-accounts?

`invalid api identifier` - function and const variables shared in actions folder

Hello, I have the issue invalid api identifier in several files in api/actions. these files contain common code used in several actions. Is there a way to avoid a file to be considered as an action ? What are the best practices with the actions ?...

Missing logs from a frontend-triggered global action

I have a global action that's called from the frontend inside a useEffect, and it logs the LCP score. It's been working fine and it still seems to work now, but I noticed a gap (last 14hrs) where no logs were recorded from this function. We had visitors and even a signup during that time, and the logs related to signup are there, but nothing from the frontend. Could this be something related to Gadget?

includeFields show error on input with checkmark

Not sure if this is just a UI bug, but seeing error state on the input field but the checkmark stating sent to Shopify. This is also being flagged in errors, but no matter which fields I remove I see the error.
No description

Cloudflare CDN cache for public route expiring too quickly (origin hits every 1–2 min)

Hey folks — wondering if anyone else has seen this. I’ve got a public route: ```...

Building Shopify App with Product Sync from FTP Server

Hi, I’m building an app that fetches CSV files from an FTP server, processes the data from each file, and syncs it to Shopify. Is this something I can build using Gadget?

Dependencies not building

The AI is telling me to ask you guys so... Your app has experienced a fatal error: GGT_FRONTEND_BOOT_ERROR All files were accidentally deleted and restored The node_modules folder is not being regenerated despite package.json updates...

CLI Removed half of the project.

I ran 'ggt dev sutton' on my local, which copied the files locally. I then ran 'ggt dev' to auto detect changes, but the copy did not include all of the files, and only included half, or the "web" folder. after running ggt dev, it then applied the 'changes' of the missing files to the project in cloud which has caused the GUI to break completely (cannot deploy, use AI or anything) and there does not seem to be a revert option in the cli. https://sutton--development.gadget.app...

Custom domain setup

Would you be able to help me setup my domain? Domain: sutton.homicity.com Gadget subdomain: sutton--development.gadget.app DNS provider: Cloudflare...