java.lang.IllegalArgumentException: Input is expected to be encoded in multiple of 4 bytes but found: 381

GitHub | markrebhan | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 1

    GitHub comment 182#239828947

    GitHub | 9 months ago | markrebhan
    java.lang.IllegalArgumentException: Input is expected to be encoded in multiple of 4 bytes but found: 381
  2. 0

    SSECustomerKey using AES-265 bit only support ASCII characters

    GitHub | 4 months ago | pat-humphreys
    java.lang.IllegalArgumentException: Input is expected to be encoded in multiple of 4 bytes but found: 43

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Input is expected to be encoded in multiple of 4 bytes but found: 381

      at com.amazonaws.util.Base64Codec.decode()
    2. AWS SDK for Java - Core
      Base64.decode
      1. com.amazonaws.util.Base64Codec.decode(Base64Codec.java:197)
      2. com.amazonaws.util.Base64.decode(Base64.java:54)
      2 frames
    3. AWS SDK for Android
      AbstractKinesisRecorder.submitAllRecords
      1. com.amazonaws.mobileconnectors.kinesis.kinesisrecorder.FileRecordParser.parse(FileRecordParser.java:45)
      2. com.amazonaws.mobileconnectors.kinesis.kinesisrecorder.AbstractKinesisRecorder.nextBatch(AbstractKinesisRecorder.java:204)
      3. com.amazonaws.mobileconnectors.kinesis.kinesisrecorder.AbstractKinesisRecorder.submitAllRecords(AbstractKinesisRecorder.java:125)
      3 frames