Solved

Error when requesting carrierService of a subscription contract

Brian_S
Shopify Partner
157 19 39

Every time I request the `carrierService.id`  (or any field on the carreirService) the API returns an INTERNAL_SERVER_ERROR. 

 

Here's a couple example request ids that failed: 

080144a5-9592-4aff-ab9b-e12ce278c661

57818527-2ae3-45f1-906a-80b0b94484d5

 

It's been pretty simple to replicate for me.

 

This causes the error: 

query getSubscriptionContract($id: ID!) {
	subscriptionContract(id: $id) {
		deliveryMethod {
			__typename
			... on SubscriptionDeliveryMethodShipping {
				shippingOption {
					carrierService {
						name
						id
					}

					code
					description
					title
					presentmentTitle
				}
			}
		}
	}
}

but if i just remove the carrier service it returns the expected response

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic
Accepted Solution (1)

NPeneycad
Shopify Staff
13 3 3

This is an accepted solution.

Hi @Brian_S! Thanks for sharing this error. I believe carrierService here is actually a deprecated field and should be marked as so. However, the returning 500 does look like a bug, so I'm currently working on a fix for this and will also update the field description to mention the deprecation.

 

Cheers!

Noah

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Reply 1 (1)

NPeneycad
Shopify Staff
13 3 3

This is an accepted solution.

Hi @Brian_S! Thanks for sharing this error. I believe carrierService here is actually a deprecated field and should be marked as so. However, the returning 500 does look like a bug, so I'm currently working on a fix for this and will also update the field description to mention the deprecation.

 

Cheers!

Noah

To learn more visit the Shopify Help Center or the Community Blog.