com.amazonaws.services.iot.model.ResourceNotFoundException: Policy not found (Service: AWSIot; Status Code: 404; Error Code: ResourceNotFoundException; Request ID: 5dc91155-f320-11e6-829f-0bd17228f870)

GitHub | hzbcdut | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and iferca . Or join the community to write better ones.
  1. 0

    GitHub comment 92#279893991

    GitHub | 3 months ago | hzbcdut
    com.amazonaws.services.iot.model.ResourceNotFoundException: Policy not found (Service: AWSIot; Status Code: 404; Error Code: ResourceNotFoundException; Request ID: 5dc91155-f320-11e6-829f-0bd17228f870)
  2. 0
    samebug tip
    Set the S3 bucket to the same region as AmazonS3Client, otherwise it just throws this exception. Check if your bucket name is correct as well.
  3. 0

    AWS IoT UpdateThing Exception

    GitHub | 1 year ago | Mindbowser
    com.amazonaws.services.iot.model.InvalidRequestException: 2 validation errors detected: Value '{"state"={"reported":{"device_id":"ABCD","motion_info":"STOP"}}}' at 'attributePayload.attributes' failed to satisfy constraint: Map keys must satisfy constraint: [Member must have length less than or equal to 128, Member must have length greater than or equal to 0, Member must satisfy regular expression pattern: [a-zA-Z0-9_.,@/:#-]+]; Value '{"state"={"reported":{"device_id":"ABCD","motion_info":"STOP"}}}' at 'attributePayload.attributes' failed to satisfy constraint: Map value must satisfy constraint: [Member must have length less than or equal to 1024, Member must have length greater than or equal to 0, Member must satisfy regular expression pattern: [a-zA-Z0-9_.,@/:#-]+] (Service: AWSIot; Status Code: 400; Error Code: InvalidRequestException; Request ID: d52c5f07-f0e5-11e5-8dd0-8d8709559cb7)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    In OSX the issue for me was due to missing sqlite4java lib DynamoDB need. Following the attached stackoverflow question solved my issue
  6. 0

    JSON parse error while handling error response

    GitHub | 9 months ago | mwm-twx
    com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: [B@239a4a9e; line: 1, column: 2]
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.amazonaws.services.iot.model.ResourceNotFoundException

    Policy not found (Service: AWSIot; Status Code: 404; Error Code: ResourceNotFoundException; Request ID: 5dc91155-f320-11e6-829f-0bd17228f870)

    at com.amazonaws.http.AmazonHttpClient.handleErrorResponse()
  2. AWS SDK for Java - Core
    AmazonHttpClient.execute
    1. com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:712)
    2. com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:388)
    3. com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:199)
    3 frames
  3. com.amazonaws.services
    AWSIotClient.attachPrincipalPolicy
    1. com.amazonaws.services.iot.AWSIotClient.invoke(AWSIotClient.java:3713)
    2. com.amazonaws.services.iot.AWSIotClient.attachPrincipalPolicy(AWSIotClient.java:432)
    2 frames
  4. com.livestar.hzb
    MainActivity$1.run
    1. com.livestar.hzb.awsiotdemo.MainActivity$1.run(MainActivity.java:212)
    1 frame
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:841)
    1 frame