We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// // my source code // Storefront.QueryRootQuery query = Storefront.query(args->{});
final QueryGraphCall call = graphClient.queryGraph(query).enqueue( callbackExecutors.handler(), result -> { if (result instanceof GraphCallResult.Success) { final Storefront.Shop shop = ((GraphCallResult.Success<Storefront.QueryRoot>) result).getResponse().getData().getShop(); //callback.onResponse(Converter.convertCollections(shop.getCollections())); callback.onResponse(null); } else { callback.onError(((GraphCallResult.Failure) result).getError()); } return Unit.INSTANCE; } );
// logs bellow // POST 2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D --> POST https://graphql.myshopify.com/api/2023-10/graphql http/1.1 2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D Content-Type: application/graphql; charset=utf-8 2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D Content-Length: 8 2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D Accept: application/json 2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D X-BUY3-SDK-CACHE-KEY: 010df9ee237d7fe2ca9c61c49b23a83b 2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D X-BUY3-SDK-CACHE-FETCH-STRATEGY: CACHE_FIRST 2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D X-BUY3-SDK-EXPIRE-TIMEOUT: 1200000 2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D User-Agent: Mobile Buy SDK Android/16.2.0/com.shopify.sample 2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D X-SDK-Version: 16.2.0 2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D X-SDK-Variant: android 2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D X-Shopify-Storefront-Access-Token: 8e2fef6daed4b93cf4e731f580799dd1 2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D Host: graphql.myshopify.com 2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D Connection: Keep-Alive 2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D Accept-Encoding: gzip 2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D query {} 2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D --> END POST (8-byte body)
// RESPONSE 2024-01-09 14:04:57.822 4723-4758 OkHttp com.shopify.sample D <-- 200 OK https://graphql.myshopify.com/api/2023-10/graphql (174ms) 2024-01-09 14:04:57.822 4723-4758 OkHttp com.shopify.sample D Date: Tue, 09 Jan 2024 22:04:57 GMT 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Content-Type: application/json; charset=utf-8 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Transfer-Encoding: chunked 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Connection: keep-alive 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Sorting-Hat-PodId: 55 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Sorting-Hat-ShopId: 13120893 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Storefront-Renderer-Rendered: 1 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Vary: Accept-Encoding 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Vary: Accept 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Frame-Options: DENY 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Content-Security-Policy: block-all-mixed-content; frame-ancestors 'none'; upgrade-insecure-requests; 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Access-Control-Allow-Origin: * 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Shopify-API-Version: 2023-10 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-ShopId: 13120893 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-ShardId: 55 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Content-Language: en 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D powered-by: Shopify 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Server-Timing: processing;dur=14, db;dur=5, asn;desc="6327", edge;desc="YVR", country;desc="CA", servedBy;desc="pp9w", requestID;desc="ecf0b7fe-e502-439b-80f8-40d02a83f6bf" 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Shopify-Stage: production 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Dc: gcp-us-west1,gcp-us-central1,gcp-us-central1 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Content-Encoding: gzip 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Request-ID: ecf0b7fe-e502-439b-80f8-40d02a83f6bf 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Content-Type-Options: nosniff 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Download-Options: noopen 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-XSS-Protection: 1; mode=block 2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Permitted-Cross-Domain-Policies: none 2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D CF-Cache-Status: DYNAMIC 2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D Report-To: {"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v3?s=lgUxbL5JdKRroBvo%2BVzD%2F06Z4GTfEc%2FPjvY3%2B2C9siR9xWwaavrjkx5VUPcbZjsnZXMjtMZGb%2BPdpn5COXWotek%2Fl04LwX74cYh6mqH%2FY%2FkWgx1dKmkrobLIdkwj7dhkMAeZwBlOYA%3D%3D"}],"group":"cf-nel","max_age":604800} 2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D NEL: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800} 2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D Server-Timing: cfRequestDuration;dur=82.999945 2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D Server: cloudflare 2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D CF-RAY: 842ffa988aaf6066-YVR 2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D alt-svc: h3=":443"; ma=86400 2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D <-- END HTTP (encoded body omitted)
// my question is why fail? need I do any code change? //thanks! Bo
The text was updated successfully, but these errors were encountered:
No branches or pull requests
//
// my source code
//
Storefront.QueryRootQuery query = Storefront.query(args->{});
// logs bellow
// POST
2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D --> POST https://graphql.myshopify.com/api/2023-10/graphql http/1.1
2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D Content-Type: application/graphql; charset=utf-8
2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D Content-Length: 8
2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D Accept: application/json
2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D X-BUY3-SDK-CACHE-KEY: 010df9ee237d7fe2ca9c61c49b23a83b
2024-01-09 14:04:57.646 4723-4758 OkHttp com.shopify.sample D X-BUY3-SDK-CACHE-FETCH-STRATEGY: CACHE_FIRST
2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D X-BUY3-SDK-EXPIRE-TIMEOUT: 1200000
2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D User-Agent: Mobile Buy SDK Android/16.2.0/com.shopify.sample
2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D X-SDK-Version: 16.2.0
2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D X-SDK-Variant: android
2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D X-Shopify-Storefront-Access-Token: 8e2fef6daed4b93cf4e731f580799dd1
2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D Host: graphql.myshopify.com
2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D Connection: Keep-Alive
2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D Accept-Encoding: gzip
2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D query {}
2024-01-09 14:04:57.647 4723-4758 OkHttp com.shopify.sample D --> END POST (8-byte body)
// RESPONSE
2024-01-09 14:04:57.822 4723-4758 OkHttp com.shopify.sample D <-- 200 OK https://graphql.myshopify.com/api/2023-10/graphql (174ms)
2024-01-09 14:04:57.822 4723-4758 OkHttp com.shopify.sample D Date: Tue, 09 Jan 2024 22:04:57 GMT
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Content-Type: application/json; charset=utf-8
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Transfer-Encoding: chunked
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Connection: keep-alive
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Sorting-Hat-PodId: 55
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Sorting-Hat-ShopId: 13120893
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Storefront-Renderer-Rendered: 1
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Vary: Accept-Encoding
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Vary: Accept
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Frame-Options: DENY
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Content-Security-Policy: block-all-mixed-content; frame-ancestors 'none'; upgrade-insecure-requests;
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Access-Control-Allow-Origin: *
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Shopify-API-Version: 2023-10
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-ShopId: 13120893
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-ShardId: 55
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Content-Language: en
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D powered-by: Shopify
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Server-Timing: processing;dur=14, db;dur=5, asn;desc="6327", edge;desc="YVR", country;desc="CA", servedBy;desc="pp9w", requestID;desc="ecf0b7fe-e502-439b-80f8-40d02a83f6bf"
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Shopify-Stage: production
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Dc: gcp-us-west1,gcp-us-central1,gcp-us-central1
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D Content-Encoding: gzip
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Request-ID: ecf0b7fe-e502-439b-80f8-40d02a83f6bf
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Content-Type-Options: nosniff
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Download-Options: noopen
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-XSS-Protection: 1; mode=block
2024-01-09 14:04:57.823 4723-4758 OkHttp com.shopify.sample D X-Permitted-Cross-Domain-Policies: none
2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D CF-Cache-Status: DYNAMIC
2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D Report-To: {"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v3?s=lgUxbL5JdKRroBvo%2BVzD%2F06Z4GTfEc%2FPjvY3%2B2C9siR9xWwaavrjkx5VUPcbZjsnZXMjtMZGb%2BPdpn5COXWotek%2Fl04LwX74cYh6mqH%2FY%2FkWgx1dKmkrobLIdkwj7dhkMAeZwBlOYA%3D%3D"}],"group":"cf-nel","max_age":604800}
2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D NEL: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800}
2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D Server-Timing: cfRequestDuration;dur=82.999945
2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D Server: cloudflare
2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D CF-RAY: 842ffa988aaf6066-YVR
2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D alt-svc: h3=":443"; ma=86400
2024-01-09 14:04:57.824 4723-4758 OkHttp com.shopify.sample D <-- END HTTP (encoded body omitted)
// my question is why fail? need I do any code change?
//thanks!
Bo
The text was updated successfully, but these errors were encountered: