Skip to content
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

How do I debug 400 errors? #227

Closed
DataGreed opened this issue Sep 13, 2024 · 2 comments
Closed

How do I debug 400 errors? #227

DataGreed opened this issue Sep 13, 2024 · 2 comments
Labels
question Further information is requested

Comments

@DataGreed
Copy link

Summary

Currently Amplitude in my project returns 400 errors and the only way I know about this is because I have Sentry set up, but the Amplitude SDK does not print or provide any useful info about the errors. I tried setting logLevel: .DEBUG but it didn't change anything.

How do I get some meaningful debug info like http responses from Amplitude so I can handle them?

@DataGreed DataGreed added the question Further information is requested label Sep 13, 2024
@crleona
Copy link
Collaborator

crleona commented Sep 13, 2024

Hi @DataGreed - we're planning on improving logging in a future release, but I've improved some of the logging in http client so you can at least debug any issues you're seeing. Please try branch https://github.com/amplitude/Amplitude-Swift/tree/AMP-109939-improve-http-logging, or wait for a release in a few days.

@crleona
Copy link
Collaborator

crleona commented Oct 1, 2024

This was released in 1.9.3

@crleona crleona closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants