Closed ValentinDenis closed 3 years ago
When the following gives you the error, "Channel.fetcher(chatServiceSid, channelPathId).fetch(twilioRestClient)", if you capture the parameters, can you reproduce the error using those parameters (chatServiceSid and channelPathId)? try { Channel channel = Channel.fetcher(chatServiceSid, channelPathId).fetch(twilioRestClient); return Optional.of(new ChannelWrapper(channel)); } catch (ApiException exception) { if (exception.getStatusCode() != null && exception.getStatusCode() == SC_NOT_FOUND) { return Optional.empty(); } else { ... echo chatServiceSid and channelPathId ... throw exception; } }
Hello @tigerfarm
Thank you for taking the time to check our issue.
We could add the logging of chatServiceSid and channelPathId, but I'm not sure it would fix our issue here, it would just tell us the channel it occurs on, but since it occurs on other routes as well It wouldn't really help
@ValentinDenis,
I think what @tigerfarm (please correct me if I'm misinterpreting) wants you to do by capturing the chatServiceSid
and channelPathId
is to try to reproduce a single instance of the exception. That helps us answer the question of whether the request would eventually succeed (may be a latency issue?).
Issue Summary
This other issue is related to our issue: #604 We have a Java application that is using the SDK to make API calls to Twilio. Our logs go back to June and we can identify this issue every month since then. We created multiple support tickets that helped us set aside proxy related issues. It looks like it happens at least every 2 days, mainly on this getChannel call: https://www.twilio.com/docs/chat/rest/channel-resource#fetch-a-channel-resource (as it is the most called request on our app) We also found it happens when the API Helper is calling "PhoneNumberReader.read"
The last occurences happened on:
Steps to Reproduce
We tried to reproduce it by calling the method "getChannel" on a loop for 3 hours, but it did not yield any result.
Code Snippet
Here is our Java code calling the SDK:
Exception/Log
Exception on "getChannel":
Exception on "PhoneNumberReader.read"
Technical details: