FROM CACHE - zh-cn_header

Since the 2024-01 version update, calling shopify-rest-admin-api appears read time out

Since the 2024-01 version update, calling shopify-rest-admin-api appears read time out

tomAndJack
Shopify Partner
5 0 3
Exception in thread "main" javax.ws.rs.ProcessingException: java.net.SocketTimeoutException: Read timed out at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:267) at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:297) at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$0(JerseyInvocation.java:630) at org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:665) at org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:659) at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
4 条回复4

huangxw
Shopify Partner
3 0 0

me too

tomAndJack
Shopify Partner
5 0 3

I first reported SSL handshake failure due to SSL mismatch. After resolving this issue, I reported a read time out error and set the read time to be ineffective
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:475)
at sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:469)
at sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:69)
at sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1239)
at sun.security.ssl.SSLSocketImpl.access$300(SSLSocketImpl.java:75)
at sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:926)

huangxw
Shopify Partner
3 0 0

I think shopify now use http3,so request occured this error. 

tomAndJack
Shopify Partner
5 0 3

The interface returns sometimes with results, sometimes without results, and sometimes with read time outs. I adjusted the readTime and tried versions 2023-1024-01, both of which had this issue, which drove me crazy。