-
Notifications
You must be signed in to change notification settings - Fork 12
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
Value <html> of type java.lang.String cannot be converted to JSONObject #163
Comments
Hi @liuyang1520 I am not able to provide a more detailed stacktrace. It's happening on a small subset of production devices in the wild. If a new version the Amplitude SDK could return the actual exception in the logger, that would be great. Nicolas |
Hi @niqo01 , Got it. Is it possible for you to try this troubleshooting plugin? By reading the short error message above, it might be helpful to understand the event payload and see whether it is convertible to JSON. Thanks! |
Here is a stacktrace:
My guess is that the amplitude backend returns HTML response sometimes, probably for some 5XX or 4XX issues and when the SDK create a JSONObject for the response, it raises an exception. See the code here: |
Expected Behavior
No error reported via the
LoggerProvider
Current Behavior
The following error message is reported to the
LoggerProvider
error callbackError when upload event: Value <html> of type java.lang.String cannot be converted to JSONObject
Steps to Reproduce
Unknown
Environment
Amplitude configuration
The text was updated successfully, but these errors were encountered: