Closed ochedru closed 6 years ago
Hi @ochedru just tested this on my end on macOS 10.14
and it is working on my end.
Do you have any other details such as the OS that you're using just to see if there is anyway we can try replicate the issue you're having?
Perhaps even provide details like how you're building the code as well.
My test code is as follows
Intercom.setToken(TOKEN);
Event event = new Event();
event.setEventName("test-event");
event.setUserID("13");
System.out.println(event);
Event.create(event);
Hi @thewheat,
Thank you for looking into this!
We are using debian (with docker):
root@0f149f395dce:/app# cat /etc/debian_version
9.5
root@0f149f395dce:/app# uname -a
Linux 0f149f395dce 4.9.65-xxxx-std-ipv6-64 #1 SMP Tue Nov 28 14:31:16 UTC 2017 x86_64 GNU/Linux
The code is not fancy at all and basically does the same thing as your test code. We configure the token, and leave all the other properties to their default values.
The only difference is that we add some metadata to the event with Event.putMetadata()
. That should not make any difference.
Note we are using the Intercom java client successfully within another backend service running on debian, but with JDK 8.
Since I cannot go back from JDK 9 to JDK 8, I am in the process of upgrading to JDK 11. I will let you know if this fixes the problem.
Still can't replicate with these details @ochedru (I did a clean netinstall)
Did you manage to get things working with JDK11?
Well, I am a bit ashamed: after further scrutiny, the issue has nothing to do with connection problems. The caller method was sending events to intercom.io in an infinite loop (though rate limited).
So, closing and apoligizing. 👎 👎 👎
No worries @ochedru ! Glad we were able to figure out what happened 😄 Onwards and upwards from here! 🚀
Version info
Expected behavior
Connection to https://api.intercom.io does not hang.
Actual behavior
Connection to https://api.intercom.io hangs indefinitely.
Steps to reproduce
Logs
Here is a jstack of the issue occurring upon connection:
Here is a jstack of the issue occurring after connection:
Note we are using a single-thread executor to send events to intercom. There are no concurrent connections to intercom.