-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch HTTP 400 #103
Comments
@bddq I just checked it and it's working alright for me. What do you see in the logs if enabling |
@marandaneto As mentioned, logs are not displayed at all in Xcode console. I checked the API key used. I use the right one. I upgraded to 3.1.1, same issue. |
@bddq we had some DNS issues yesterday, not sure if it's the same thing but I will double check. Would you mind trying it again? Can you test it using the US cloud (default I will check why there are no logs as well. |
@marandaneto I got same behaviour with default host. BTW, I tested the same source code on another device and it works. Both tests were done with PostHog SDK v3.1.1, build with Xcode 14.2. Can it be an issue with Gzip on iOS 16 or something else making the request bad? |
@bddq #104 I'll try to create an emulator using iPhone SE (3rd gen), iOS 16.2, WiFi |
https://github.com/PostHog/posthog-ios/releases/tag/3.1.2 |
I got it. Logs are now popping in Xcode console with 3.1.2 version. You have an issue with the Why in your DateUtils you are not using an |
@marandaneto my device have 12-hour time format, so the date formatter is adding |
oh damn, let me check this @bddq thanks! |
@bddq I managed to create an emulator and simulate the issue. |
Thanks @bddq for debugging with me. |
Version
3.1.0
Steps to Reproduce
Trigger any event.
Wait for send to the
/batch
endpoint.Expected Result
Expected HTTP 2xx code after send.
Expected to see some events in Activity feed.
Actual Result
No logs are shown in the Xcode console.
No events are shown in Activity feed on website.
Debug with breakpoint indicates a response status code is always
400
(PostHogApi.batch()
) without any error.SDK is initialised with:
The text was updated successfully, but these errors were encountered: