Hi There,
I am developing a Payment App for my company Billdesk that will be installed on merchant development store.
Am currently facing issue with installing my application.
I am following this document: https://shopify.dev/apps/payments/onboarding-a-merchant-payments-apps
In this, GraphQL section is pending. Rest all steps I am able to test properly.
When I am calling the GraphQL mutation from my server, I am getting java.net.SocketTimeoutException: connect timed out.
When I try this from local postman and hitting my localhost, then it is responding with Login page. But when firing from a server, It is giving me “java.net.SocketTimeoutException: connect timed out”.
What could be the issue?
Is this because it is failing at mTLS handshake? or is it that some whitelisting is needed at Shopify end to accept my request?
Auth URL that I call :
https://billdeskstore.myshopify.com/admin/oauth/authorize?client_id=0299ee21f0c57395d1f0674dacd08980&scope=write_payment_sessions,write_payment_gateways&redirect_uri=ht
tps://shopifyuat.billdesk.io/paymentsapp/install/confirmInstall/&state=4d455862696c6c6465736b73746f72652e6d7973686f706966792e636f6d31363438343730353033
For this, it responds with authcode.
Now I hit https://billdeskstore.myshopify.com/payments_apps/api/0.1.0/graphql.json
with: query:{“variables”:{“ready”:true,“externalHandle”:“2212435”},“query”:“mutation PaymentsAppConfi
gure($externalHandle: String, $ready: Boolean!) {paymentsAppConfigure(externalHandle: $externalHandle, ready: $ready) {userErrors{field message}}}”}
Headers:{X-Shopify-Access-Token=[****802aa189c42533bf784bfd203e9ebba3], Accept=[application/json], X-B3-SpanId=[37dc3a1e7c00c621], X-B3-Sampled=[0], X-B3-TraceId=[37dc3a1e7c00c621
], Content-Type=[application/json]}
I get this error:
java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_222]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_222]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_222]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_222]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_222]
at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_222]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666) ~[na:1.8.0_222]
at sun.net.NetworkClient.doConnect(NetworkClient.java:175) ~[na:1.8.0_222]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463 ~[na:1.8.0_222]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558 ~[na:1.8.0_222]
at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264) ~[na:1.8.0_222]
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367 ~[na:1.8.0_222]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191 ~[na:1.8.0_222]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162 ~[na:1.8.0_222]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056 ~[na:1.8.0_222]
Request someone to look into this and help me out