I got an internal error when I tried to create a discountAutomaticApp using GraphQLApp

I got an internal error when I tried to create a discountAutomaticApp using GraphQLApp

falcon0119
Shopify Partner
2 0 2

 

---

## Issue Description

### Mutation Used

```graphql
mutation {
discountAutomaticAppCreate(automaticAppDiscount: {
title: "autoDiscount",
functionId: "e3a543d8-ca93-4281-84f9-5e80e8b7dd33",
startsAt: "2022-06-22T00:00:00"
}) {
automaticAppDiscount {
discountId
}
userErrors {
field
message
}
}
}
```

### Error Response

```json
{
"errors": [
{
"message": "Internal error. Looks like something went wrong on our end.\nRequest ID: af2496b7-04b9-4b00-8eaa-b7176d8b3eaf-1719981084 (include this in support requests).",
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"requestId": "af2496b7-04b9-4b00-8eaa-b7176d8b3eaf-1719981084"
}
}
]
}
```

### Description

I encountered an internal error while attempting to create a discount using the `discountAutomaticAppCreate` mutation in GraphQL. The mutation should create an automatic discount application with the given parameters. However, instead of successfully creating the discount, I received an internal server error.

- **Request ID**: `af2496b7-04b9-4b00-8eaa-b7176d8b3eaf-1719981084`
- **Error Message**: "Internal error. Looks like something went wrong on our end."

Please look into this issue and provide guidance on how to resolve it. If additional information is required, feel free to let me know.

Thank you.

---

 

Replies 6 (6)

rafaeldevcode
Shopify Partner
4 0 0

Aqui está a tradução:

---

Hello, I'm facing the same problem, and the strangest part is that if I install the app in my test store, this error doesn't occur. It only appears when I try to run it in my production store.

Did you make any progress? If so, could you share it? I would be very grateful!


dantheman88988
Shopify Partner
7 0 2

I am getting the exact same issue, works on development store only. Renders my function extension utterly useless?

 

Was there any progress with this?

rafaeldevcode
Shopify Partner
4 0 0

Hello, unfortunately not!

Anton_
Shopify Partner
2 0 0

Hello! I have the same problem. Have you contacted support?

LOGICO
Shopify Partner
2 0 0

We also encountered the same issue and went to support yesterday. They are yet to respond with a solution.

Anton_
Shopify Partner
2 0 0

Eventually we moved to discountCodeBasicCreate mutation. It works without errors at least for now.