79171468

Date: 2024-11-08 20:30:59
Score: 1.5
Natty:
Report link

After extensive investigation, I discovered that the issue was due to the data type used. In Kotlin, the Int type has a 32-bit limit, which can represent values up to 2,147,483,647 (10 digits). However, the integer received from the server had 13 digits, which exceeded this limit.

The fix

I changed the data type from Int to Long (which supports up to 64 bits) in the response class. This solved the issue, and the client started processing the response successfully.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ángel Ugarte