While we are trying to register webhook from java code, we got 406 error, we had pasted the error received from shopify. Kindly check and update us
resp.getResponseCode : 406 and response ; ### Http Response: resp_code: 406 resp_msg: Not Acceptable headers: {X-Sorting-Hat-ShopId=[<>], null=[HTTP/1.1 406 Not Acceptable], CF-RAY=[83b8b1660fd6090d-LAX], Server=[cloudflare], X-Request-ID=[6674d04d-bed0-4b7b-978b-857944ce8353], X-Shopify-Stage=[production], X-Content-Type-Options=[nosniff], Server-Timing=[cfRequestDuration;dur=118.999958, processing;dur=49], Connection=[keep-alive], X-Download-Options=[noopen], X-Permitted-Cross-Domain-Policies=[none], Date=[Tue, 26 Dec 2023 10:38:13 GMT], CF-Cache-Status=[DYNAMIC], NEL=[{“success_fraction”:0.01,“report_to”:“cf-nel”,“max_age”:604800}], Report-To=[{“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v3?s=TVjUU8wmO1emG8MoLmBLp5jpI2HCyp3%2BubEYaH%2Fieyi6ndVaX%2FAm8U%2F6ORJpnqId4ZRKzmZsSXgV5oYImnrxfDNDgteq9oKLPWlKoapJzvG%2BfhY9Phdo5AZ20o6yd2ByhLq1bw0szoaF760%3D”}],“group”:“cf-nel”,“max_age”:604800}], X-Sorting-Hat-PodId=[153], Content-Security-Policy=[default-src ‘self’ data: blob: ‘unsafe-inline’ ‘unsafe-eval’ https://* shopify-pos://; block-all-mixed-content; child-src ‘self’ https:// shopify-pos://; connect-src ‘self’ wss:// https://*; frame-ancestors ‘none’; img-src ‘self’ data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.shopifycs.com https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com ‘self’ ‘unsafe-inline’ ‘unsafe-eval’; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fwebhooks&source%5Bsection%5D=admin_api&source%5Buuid%5D=6674d04d-bed0-4b7b-978b-857944ce8353], alt-svc=[h3=“:443”; ma=86400], X-XSS-Protection=[1; mode=block; report=/xss-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fwebhooks&source%5Bsection%5D=admin_api&source%5Buuid%5D=6674d04d-bed0-4b7b-978b-857944ce8353], Content-Length=[0], Content-Type=[text/html; charset=UTF-8]}
Timestamp we hit the api:
26-12-2023
02:38:13:107 PST
Note: this is working for all of our customers, only to one customer we are facing this issue.
thanks