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

Rate limit 10 per minute

Is it possible to enque an action and somehow handle rate limiting if the api endpoint only alows 10 per minute?

App needs a kick... "is not a function" error

Hi, are there any Gadget staff around that could give my "development" app "welove-core" a kick please? There is weirdness happening with a new queued action I am using, so I tried to temporarily alter the action so I could just run it directly from the playground command line, but I get a TypeError: "api.brightpearlDataUpdates.stockCorrection is not a function" error. I think this maybe due to me moving the action file, I've seen this kind of weirdness before when I have done that. Sometimes a "Restart App" link press sorts it, but it hasn't and I'm stuck at the moment in this state. I'm hoping there may be some behind-the-scenes magic can be done to fix please?...

update an env variable from a global action

Is it possible to update an env variable from within a global action?

How would you go about the stores email as the gadget email sender?

I've not played with email before so I am unsure how you would set this up? I have forked the wishlist template. I want to send emails when a wishlist product comes back in stock. I want it to send from the stores email address. How would I set that up?...

How can we have conditional scopes based on environment ?

does settings.gadget.ts support writing ts code in that which would get executed ?

Tracking a specific queue completion

Hi all! I have a question about the best way to track a queue completion - I have a feature on my app that runs bulk actions. Every time a bulk action is initiated, a queue with a specific name is created. Currently, what I'm doing is using a model to track the completion - So I'm basically updating a record with the total queues/completed queues, then I trigger an action when total == completed....

Deprecated API Calls

Is this something that Gadget needs to be actioning? I don't believe I have called the WebhookSubscription.privateMetafieldNamespaces endpoint at all...
No description

Enqueue global actions is not receiving the parameters

I don't if what I am doing wrong here but I can't receive my parameters passed in the global action from an enqueue
No description

In App purchases

I have previously used Mantle for Shopify apps subscription however if I want to use an app and charge customers not on a subscription basis but rather have in app purchases, like one time payment for that particular product then how do I implement that like what's the best possible way to do so

Calling http routes inside model actions

Is there a way to call an http route inside the model actions for example, in the create.js onSuccess? Thanks!

Does anyone know if its possible to apply "pickup" to a draft order via api?

I'm trying to add the pikcup to a draft order via api. I am wondering if anyone has ever done this?
No description

Help with computed field syntax

Hi guys. I'm trying to create a computed field on the shopifyProduct model that checks if the product images have alt texts defined. That field would check all shopifyFile records associated with the product (through the shopifyMedia model) and return 'all' if all files have alt texts defined, 'some' if only some or 'none' if none of them have alt texts....

Use BackgroundActionTrigger instead of APIActionTrigger

Hi all, We have some Background actions in our project where we send out Slack messages in case a Background action fails in their final attempt. We used the trigger element of the ActionContext element to do this....

Full resync of shopifyFulfillmentOrder model

I've only recently passed Shopify's Level 2 review for accessing protected customer data, and I am trying to backfill my shopifyFulfillmentOrder model, but it doesn't seem to be working as I would expect. The process completes almost instantly and no records are updated. I'm running this action: ```...

How to investigate usage spike

Hi all, we experienced an odd usage spike on Jan 12. We usually sit around 0.35 hrs daily, fairly consistently. However, we noticed that on Jan 12, we had 4.6 hrs request time. We can see in the "Request time by source - Triggers" view, that this trigger has used 4.36 hours: GET /api/collections - Routes - 4.36 hours However, we are trying to track down if this is coming from one specific merchant, or what has caused this spike. In the "Request time by source - Shopify Domains" view, the store with the highest usage says it's only used 0.13 hours (2%)....

Feedback on best practises to create a contact page

Hey guys! I am just looking for some tips, one of the requierments to get approved for shopify listing is to have easy access for merchants to contact you for support. I was thinking of creating a contact form in the app. I am wondering if anyone here built a contact form with node mailer or anything similar? I have seen a lot of apps use live chat, is that better than a contact form?...

Shopify fileCreateMutation with Blob url as source

Hi all, I have a Polaris drag and drop / add image element on my jsx page. I am saving the bloburl and filename as params. When a customer clicks the button to add, it passes the information and triggers a create.js function in where I want to create the image in Shopify via a fileCreateMutation. However when using the bloburl as the source, shopify sees it (off course) as an html element, while the filename for the image will be in a png format. ...

Issue with taskId Missing from params in Custom Action

I created a custom action called updateRank in shopifyCustomer. The params received by this action are specified as follows: export const params = { taskId: { type: "string" }, };...

How to optimize request time?

I touched 75% request time today with 8 days left in my billing cycle. Is there a way to optimize request time because I am pretty sure the $40/100 hour additional would render my app not profitable enough.

GGT_APP_CRASH: GGT_UNKNOWN: connect ECONNREFUSED 10.128.0.49:443

Why our app is getting such error? Users cannot do any updates in our app