HTTP 409 response to webhooks endpoint

kelseyjudson
Shopify Partner
42 1 39

I'm getting a 409 response sometimes to calls to GET webhooks.json. This status code isn't mentioned in the documentation:

 

https://help.shopify.com/en/api/getting-started/response-status-codes

 

Apparently 409 means 'Conflict', but there is no information in the response body about what caused the error, so I'm not sure how to proceed.

 

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409

Replies 10 (10)

Ricardo_Amorim
Shopify Partner
6 0 8

Getting 409 responses back from a few GET requests as well.

SBD_
Shopify Staff
1829 269 405

Hey @kelseyjudson,

 

Can you please provide a request ID from the response headers of a request which hits a 409?

Scott | Developer Advocate @ Shopify 

kelseyjudson
Shopify Partner
42 1 39

@SBD_, it seems to be coming from Cloudflare, as there's no such header so I don't think these requests are actually reaching Shopify:

To /api/2019-07/events.json:

 

Cache-Control: max-age=6
Cf-Ray: 56023d042c059935-LAX
Connection: close
Content-Type: text/plain; charset=UTF-8
Date: Wed
05 Feb 2020 04:46:06 GMT
Expect-Ct: max-age=604800
report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Expires: Wed
05 Feb 2020 04:46:12 GMT
Server: cloudflare
Set-Cookie: __cfduid=dd5bb17e25b0306a5981720981f9945ac1580877966; expires=Fri
06-Mar-20 04:46:06 GMT; path=/; domain=.lucid-dev.myshopify.com; HttpOnly; SameSite=Lax
Transfer-Encoding: chunked

To /api/2019-07/shop.json:

 

Cache-Control: max-age=6
Cf-Ray: 55fd49ff6e9c9821-LAX
Connection: close
Content-Type: text/plain; charset=UTF-8
Date: Tue
04 Feb 2020 14:21:07 GMT
Expect-Ct: max-age=604800
report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Expires: Tue
04 Feb 2020 14:21:13 GMT
Server: cloudflare
Set-Cookie: __cfduid=d3d66c904ee933a63674e8ae2214b0b451580826067; expires=Thu
05-Mar-20 14:21:07 GMT; path=/; domain=.appstesting555.myshopify.com; HttpOnly; SameSite=Lax
Transfer-Encoding: chunked

To /api/2019-07/webhooks.json:

 

Cache-Control: max-age=6
Cf-Ray: 55f6385eca229959-LAX
Connection: close
Content-Type: text/plain; charset=UTF-8
Date: Mon
03 Feb 2020 17:45:47 GMT
Expect-Ct: max-age=604800
report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Expires: Mon
03 Feb 2020 17:45:53 GMT
Server: cloudflare
Set-Cookie: __cfduid=d20f1e343bc973858bd93c85a0f2e14bb1580751947; expires=Wed
04-Mar-20 17:45:47 GMT; path=/; domain=.everett-practice.myshopify.com; HttpOnly; SameSite=Lax
Transfer-Encoding: chunked
SBD_
Shopify Staff
1829 269 405

Thanks @kelseyjudson - I'll send you a DM to get more info

Scott | Developer Advocate @ Shopify 

dave4jr
Visitor
2 0 0

@SBD_ Can you please reply to this thread as well? It's April and I'm still getting this error and so are a number of other people I've talked to. Would be very helpful. Thanks.

 

Dave

SBD_
Shopify Staff
1829 269 405

@dave4jr, can you provide some more information:

 

- Is the response from Shopify or Cloudflare (is there a request ID?)

- Are you seeing this with PUT requests, do you have an example?

Scott | Developer Advocate @ Shopify 

kelseyjudson
Shopify Partner
42 1 39

We've also started seeing 409s again. Just one or two here and there over the past week or so (from Cloudflare).

SBD_
Shopify Staff
1829 269 405

Thanks @kelseyjudson. Are you able to capture the next 409 and forward me the details?

Scott | Developer Advocate @ Shopify 

kelseyjudson
Shopify Partner
42 1 39

Okay @SBD_ I'll keep an eye on it. Are there any particular details that are important (beyond the headers, and I think the response body is usually empty)? The last few were for POST requests to the GraphQL endpoint.

SBD_
Shopify Staff
1829 269 405

Thanks! The headers and body (if any) of the response, and any request info (endpoint, query) would be helpful.

Scott | Developer Advocate @ Shopify