Hi team, We are using Rudderstack integrated with ...
# support
w
Hi team, We are using Rudderstack integrated with Spring boot microservice using the below dependency <dependency> <groupId>com.rudderstack.sdk.java</groupId> <artifactId>rudderanalytics-client</artifactId> <version>1.0.1</version> </dependency> The Rudderstack is able to receive the events trigger from back-end service successfully and the events are further sent to Leanplum as well through rudderstack. But we are getting the below error while sending the events from Rudderstack to Adjust. It fails on Adjust target with below 400 error. Can you please assist?
c
Hey @wooden-city-96248, Can you please share the payload of the track event that failed? Initial thought is that there should be something wrong with the payload.
w
Hello @calm-yak-10773
This is the payload received at rudderstack
{ "anonymousId": "f7a8be90-096e-426b-9094-52b1a7315a0a", "event": "DELIVERED", "integrations": {}, "messageId": "63c06adb-5fe5-4dba-91e7-8a592ebfa7e8", "properties": { "emailId": "farah.haider@iq.zain.com", "phoneNumber": "7838654600" }, "rudderId": "b87df4f1-5dea-480b-ba15-8d20d85a06b8", "timestamp": "2023-02-21T051115.657Z", "type": "track", "userId": "8948b3bb-2b5b-495a-bd50-62ca5fefffb8" }
And below payload is seen at adjust
{ "anonymousId": "f7a8be90-096e-426b-9094-52b1a7315a0a", "event": "DELIVERED", "integrations": {}, "messageId": "63c06adb-5fe5-4dba-91e7-8a592ebfa7e8", "originalTimestamp": "2023-02-21T081118.663+03:00", "properties": { "emailId": "farah.haider@iq.zain.com", "phoneNumber": "7838654600" }, "receivedAt": "2023-02-21T081118.560+03:00", "request_ip": "10.233.70.28", "rudderId": "b87df4f1-5dea-480b-ba15-8d20d85a06b8", "sentAt": "2023-02-21T081118.663+03:00", "timestamp": "2023-02-21T051115.657Z", "type": "track", "userId": "8948b3bb-2b5b-495a-bd50-62ca5fefffb8" }
adjust_error.png
c
Adjust is a Mobile First Destination and if you want to send events from the Java Source make sure you include context.device.type into the payload. Acceptable value for context.device.type is
android
or
ios
. Can you please try that and let us know if it works for you?
It seems like you’re using an older version of the Java SDK, please plan to switch to the latest version i.e., v3.0.0.
w
Thanks Abhishek. Also if you could clarify the connection mode which we should use for backend events.
There are two connection modes, one is Device (that requires device) the other is Cloud mode. I think the Cloud mode is dedicated for the backend events (which might not require device type). Please clarify ?
g
Can you share your workspaceId @wooden-city-96248?
c
Server SDKs supports only cloud mode connection. So, you can use only cloud mode with Java SDK. Coming to the second question, device.type is not a mandatory field for all the destinations i.e., it’ll work with most of the destination, even if you don’t include that field. But some destination like Adjust (which is a Mobile First Destination) do expect those field to be present in the payload.
w
Okay, Thanks Abhishek for clarification