Hello Team, I have integrated the `rudder_sdk_flut...
# support
e
Hello Team, I have integrated the
rudder_sdk_flutter: ^2.3.3
using custom dataPlaneUrl and conrolPlaneUrl. I am unable to get the events when running on IOS devices. Events are getting logged when using web and android. Is there a solution to this? Thanks in advance. CC:- @purple-garden-33982
k
Hey @elegant-gold-80597 , Can you please share any logs you are seeing while running the app on iOS ?
e
I did not find any logs in the console while testing. Found these logs on the cdm console
Copy code
#Version: 1.0
#Fields: date time x-edge-location sc-bytes c-ip cs-method cs(Host) cs-uri-stem sc-status cs(Referer) cs(User-Agent) cs-uri-query cs(Cookie) x-edge-result-type x-edge-request-id x-host-header cs-protocol cs-bytes time-taken x-forwarded-for ssl-protocol ssl-cipher x-edge-response-result-type cs-protocol-version fle-status fle-encrypted-fields c-port time-to-first-byte x-edge-detailed-result-type sc-content-type sc-content-len sc-range-start sc-range-end
2023-06-09	11:22:02	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	tr33hy5PoSc3ZPasSGOqSNr4s8yH5LCfKbjNKXWmlaWdKciEeXvNqA==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	909	0.642	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.642	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:22:04	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	kUOGfKPpSsYJ3xPFyQqLbAV9-RRugt98o7PVNPA7umMoaJOyD78xyA==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	909	0.637	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.637	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:22:07	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	n9se1tZc9aN7Hxfd3KuzsTxFyJ0NLyjSXr7U-k_QhFX2nmH_v8_FxQ==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	909	0.845	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.845	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:22:11	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	NRuuFilRAsUCEpFMi1f8JWKwJNTDIM0N23tzDHY3hlBIXtyPDIvg1w==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	951	0.850	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.850	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:22:16	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	2GCSfnslfDzwm2VlTGjcFqqQl5Pg8f4gW9fl460p6-zht760YOdaWQ==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	989	0.845	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.845	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:22:21	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	d1rhxL-By79Ly9RgK2bJJVnl5jGf_ulPhEa7i9ZBs_NwcFbrfQPZQw==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	989	0.845	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.845	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:22:28	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	J9E39ZGu0e8xsmj3Imek0syq71fjYmab6J2p-vb003jRlrMOO-wuOg==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	989	0.632	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.632	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:22:36	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	thBccaadyBOtc04-wShZj-bnhxmV0anrGHreGmP8V2Iwh6vFsHFQtQ==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	990	0.641	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.641	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:22:45	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	C3MVWwiYTb8amJ8N8d9Y09r48MDRZ_Lh-_mcP9RsWHTmPmsqBryMhQ==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	989	0.639	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.639	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:22:54	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	X5C4YHcvlpeNqOf5lfolUkEWGjqSQF3g2VMRpuawW1nLsZQYsteQGA==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	1203	0.637	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.637	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:23:05	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	M3BmXctutWbn_5ps2tFP9Cr_v8VQKgNhbPVsQqcek79QbDKpZTJXag==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	1307	0.631	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.631	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:23:17	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	eu-uDC0nYeuH0yo-kwuXvtXY3NCUdf7ebmwXkKfrjXHfT2CYHp0-oA==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	1411	0.640	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.640	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:23:29	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	xFyI7JtfxI7qPuYDbDeVHiN1njSAzP4uvc_BN_7GIoS0ymzU601vDA==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	1480	0.636	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.636	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:23:43	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	SyRdQtIW1JUozfwK_k6QQ22DdS5wxgKWbxfknzKLB3DVjJDKhcE5Zg==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	1651	0.633	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.633	Error	text/plain;%20charset=utf-8	13	-	-
2023-06-09	11:23:58	DEL51-P2	466	2401:4900:1c68:ffeb:2ca8:9574:23b0:8918	POST	<http://d1h8nol19csrum.cloudfront.net|d1h8nol19csrum.cloudfront.net>	/v1/batch	400	-	mobile_app/186%20CFNetwork/1408.0.4%20Darwin/22.5.0	-	-	Error	L-XPgQL1O0UfEUiOvjadD_m2KavBXeiaY1f7wgzzYEOyOgcDh86Rjw==	<http://rlabs-dp.goinfluencer.io|rlabs-dp.goinfluencer.io>	https	1651	0.627	-	TLSv1.3	TLS_AES_128_GCM_SHA256	Error	HTTP/3.0	-	-	57194	0.627	Error	text/plain;%20charset=utf-8	13	-	-
also i used this doc for setup. Is there any step for ios i am missing?
k
Try running the app from xcode and share the logs from app
e
I am using a flutter app, when running the app using an ios emulator i don't see any error logs in the console
k
Yeah, you wouldn't be seeing any logs in console. If you open the project in xcode and run it then to see the logs. Alternatively you can also open the .xcworkspace file in the ios folder to run it from xcode and then you would see logs
🆗 1
p
Hey @kind-carpenter-27609. We’re getting these logs
Copy code
2023-06-10 08:06:02.603355+0530 Runner[8410:9466158] RSStack:Debug:RSNetworkManager: sendNetworkRequest: requestURL <https://rlabs-dp.goinfluencer.io/v1/batch>
2023-06-10 08:06:02.838606+0530 Runner[8410:9465435] RSStack:Debug:RSNetworkManager: sendNetworkRequest: Request to url <https://rlabs-dp.goinfluencer.io/v1/batch> is successful with statusCode 400
2023-06-10 08:06:02.839575+0530 Runner[8410:9465435] RSStack:Error:RSNetworkManager: sendNetworkRequest: Request to url <https://rlabs-dp.goinfluencer.io/v1/batch> failed with statusCode 400 due to Invalid JSON
k
got it, can you share more logs which actually include the payload with batch of events sent to Rudderstack’s data plane so that we can understand why it’s returning an invalid JSON. you can dm me the payload.
✅ 1