If you write more details of the error, https://github.com/line/line-bot-sdk-java/issues could help you.
Q&A
Line Messaging API - Getting Socket Exception while calling API with channel long live token
Line Messaging API - Getting Socket Exception while calling API with channel long live token Calling any Message API like get profile or push message and getting following exception
Issue/ Error Message details
[OkHttp https://api.line.me/...] INFO com.linecorp.bot.client.wire - --> GET https://api.line.me/v2/bot/profile/<User Id> [OkHttp https://api.line.me/...] INFO com.linecorp.bot.client.wire - Authorization: Bearer <Channel Long Live Token> [OkHttp https://api.line.me/...] INFO com.linecorp.bot.client.wire - User-Agent: line-botsdk-java/4.3.0 [OkHttp https://api.line.me/...] INFO com.linecorp.bot.client.wire - --> END GET [OkHttp https://api.line.me/...] INFO com.linecorp.bot.client.wire - HTTP FAILED: java.net.SocketException: Connection reset
Accompanying respective source code
private LineMessagingClient getProfile(String dlrId) throws Exception { LineMessagingClient client = client = LineMessagingClient.builder(channelToken).build();; return UserProfileResponse userProfileResponse = client.getProfile(userId).get(); }
Resolution Tried
- Checked Proxy Setting of Local and Server Both no restriction
- Checked No IP restriction configured in Channel or Line Offical Account
- Works only one time in day
- Messaging Sending Limit still within limit
Reference information (Version / Platform/ environment)
- Line 4.3.0 jar is used
Similar posts
No similar posts