FROM CACHE - en_header

Access denied for appSubscriptionCreate

Solved
mattdenoronha
Shopify Partner
23 1 9

So I implemented a Graphql appSubscriptionCreate mutation within an app previously and it was successful. However I'm now experiencing problems when making the call - I'm getting a 'Error: GraphQL error: AppSubscriptionCreate access denied' response.

 

I've also tried running the basic mutation seen in the docs (below) but that's still got the problem. I don't understand how access could be denied, AppSubscriptionCreate doesn't require any scopes. All other queries and mutations are working fine, I can even still query subscriptions.

 

mutation {
  appSubscriptionCreate(
    name: "Super Duper Recurring Plan"
    returnUrl: "http://super-duper.shopifyapps.com"
    lineItems: [{
      plan: {
        appRecurringPricingDetails: {
            price: { amount: 10.00, currencyCode: USD }
        }
      }
    }]
  ) {
    userErrors {
      field
      message
    }
    confirmationUrl
    appSubscription {
      id
    }
  }
}

Screenshot 2020-04-30 at 19.08.07.png

 

The React component making the call

<Mutation mutation={testQl}>
        {(handleSubmitTest, { error, data }) => {
          if(error) {console.log(error)}
          if(data && data.appSubscriptionCreate.confirmationUrl) {
            redirectToPage(data.appSubscriptionCreate.confirmationUrl);
          }
          return (
            <Button onClick={() => {handleSubmitTest()}}>Hi</Button>
          )
        }}
      </Mutation>

Any help would be massively appreciated.

Accepted Solution (1)

Accepted Solutions
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 104 172

This is an accepted solution.

Hello everyone,

 

Letting everyone know the revert has completed, and this issue should now be resolved. You should be able to use the `appSubscriptionCreate` mutation now without getting an Access Denied error. However if you are still encountering any issues or problems, please let us know.

 

Thank you all for alerting us about this issue, and for your patience as we worked to fix this. 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

View solution in original post

Replies 44 (44)
KisukaKiza
Shopify Partner
38 0 31

I am suddenly getting the exact same problem within the last few days. I have tons of clients complaining to me now. Did something change on Shopify's end?

casedo
Excursionist
18 0 15

Same issue on my app as well. I have been trying to sort this out for hours but no luck. I just had a chat with shopify support team, they are examining the issue and hopefully it will be resolved soon.

Upsie ‑ Upsell & Cross Sell Show recommended & related products everywhere on your site.
Second Image Hover Animations converts product images on your site into dynamic ones with simply one click
The Detective FAQ outstanding FAQ page templates & Product FAQs
blynn123
Shopify Partner
1 0 3

Just chiming in here to say I'm having the same issue!

ConspireAgency
Shopify Expert
32 3 16

Same thing here!

Conspire Agency //
Los Angeles, California //
https://conspireagency.com
View my showreel: https://www.youtube.com/watch?v=E9upo48FQUg
KisukaKiza
Shopify Partner
38 0 31
KisukaKiza
Shopify Partner
38 0 31

Glad to know I'm not crazy and it's happening to everyone. I tried calling Shopify's Partner Support and they told me "we can't help with coding issues" and said just to post here so other partners can help give feedback -.- this is clearly an issue that happened on their end and not some simple code issue.

 

My guess is they deployed something specific to the graphQL service which is causing the scope check to fail.

 

Is everyone else using the graphQL method of making the subscription? Or has anyone tried the REST API method? I'm curious if they're both failing. Though I wanna say the REST method has to be controlled on the partner's end for rebilling rather than on shopify's end with the other method.

musubi
Shopify Partner
8 0 2

+1 for same issue

GMKnight
Shopify Partner
72 7 31

It's not just me 🙂 Using the 2020-04 API version. Tried from dev as well as a production server and both do not work. I thought perhaps it was a code problem that I was having ...

Store owner and app developer. Canada.
dasha-k
Shopify Partner
1 0 1

Same issue, both on development and production

Khalid_Nazmus_S
Shopify Partner
16 0 4

I think this is a Shopify end issue. This is very upsetting that,

that is what we had to expect from a billion-dollar company!!

 

 

casedo
Excursionist
18 0 15

I had tried with rest api, I had tried many things like crazy and even I have broken my code 🙂 
Rest api is just working fine only issue is with graphql and valid for AppSubscriptionCreate. 

I have always been a big fan of rest, just thought maybe it is time to give graphql a shot but I guess it hadn't been.

Upsie ‑ Upsell & Cross Sell Show recommended & related products everywhere on your site.
Second Image Hover Animations converts product images on your site into dynamic ones with simply one click
The Detective FAQ outstanding FAQ page templates & Product FAQs
KisukaKiza
Shopify Partner
38 0 31

I had been using the graphQL mutation just fine in my app for the last 2 months. No idea why it's now suddenly not working. Seems pretty ridiculous to have an entire app development guide dedicated to using the graphQL method only for it to not work now. If it was an API change, a notification to Partners using that method would have been nice, but I can't find any information on their API changelog that indicates any breaking changes that would cause this problem.

 

 

mattdenoronha
Shopify Partner
23 1 9

So just chatted with Shopify support. As my app isn't live yet, they said to wait until I submit it and the Apps QA team would advise me on what to do.

In the meantime, they've escalated the issue to be looked at. This will take up to 3 working days. I should be emailed when there's an update, so I will update this thread (unless someone from Shopify could jump in now and give an update?).

 

For those of you with live apps, I'd suggest getting on Shopify Partners Support live chat, I imagine they'd help now (maybe encourage you to switch to REST until it's fixed). Otherwise, if it's an issue for you, I also recommend getting in touch and asking to escalate the issue so it gets more exposure.

KisukaKiza
Shopify Partner
38 0 31

@mattdenoronha I've had an app live since march and had been developing it using the mutation since January. For the entire month of March and April my live app had been using the mutation with zero issues.

 

I've been on chats, emails, and phone calls with Shopify Partners Support since 10 AM. I've had "Gurus" tell me the following:

 

  • You should post on the partners forums to see if other partners can help you.
  • We cannot help with code issues.
  • This is an issue with your code.
  • This is not an issue on our end.
  • Our "technical support team" has looked at this issue and see's their your app is returning an "internal server error", if you look at the url, you can see it's your app's url not our url. (which literally resulted in me having to explain how a codebase can fail if it's third-party dependency api fails to return the proper data it's expecting)

At no point did a single Guru tell me they've forwarded the information to the proper team or escalated the issue. EVERY SINGLE ONE chose to blame me and my codebase instead. This is so unprofessional.

mattdenoronha
Shopify Partner
23 1 9

I'm guessing because my app isn't live, they didn't look into the issue. Because they couldn't see the problem, there was no choice but to escalate it then.

Yeah, that doesn't sound too great. Fingers crossed this will be sorted soon. Something that stops app revenue must be of interest to Shopify.

KisukaKiza
Shopify Partner
38 0 31

Just tried generating a fresh test app using Shopify's App CLI tool. I used the CLI tool to create a new node-based app. Did the generate billing command to add the recurring billing code. Then tried to install the app and it immediately failed. So even the code their own CLI tool generates is broken. Can't even launch a test app using it.

 

ubuntu_2020-05-01_03-14-46.png

aecomtech
Shopify Partner
9 0 2

We are having the same issue, new customers cannot add the app since the AppSubscription access denied. Our app has been launched since January and there was no issue about this so we are sure that is not our coding issue, we are having soo many complain from the customers now, please fix this!

hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 104 172

Hi everyone,

 

Letting you all know that we are aware of this issue. We are working on reverting a change from yesterday, which will allow this mutation to start working again. I will update this thread as soon as I have more to share.

 

Thank you for your patience and understanding here.

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

GMKnight
Shopify Partner
72 7 31

Hassain, thanks for the update. Seriously. But two concerns here (from a very old professional developer's point of view):

 

1) Several of us were told it was an 'us' problem when clearly it was not.

 

2) Where in the heck can we formally submit bug reports to you guys about APIs? I can't find a form anywhere and support didn't know.

 

Many thanks.

Store owner and app developer. Canada.