Skip to content

Trying to access SQS message body throws an exception as of boto3 versions 0.0.3 and 0.0.2 #33

@andrew-kurin

Description

@andrew-kurin
import boto3

queue_url = ""

sqs = boto3.resource('sqs')
queue = sqs.Queue(queue_url)
messages = queue.receive_messages()
msg = messages[0]
print(msg.body)

It gives:

 File "****", line 31, in perform_action
    print(msg.body)
  File "****lib/python2.7/site-packages/boto3/resources/factory.py", line 262, in property_loader
    '{0} has no load method'.format(self.__class__.__name__))
ResourceLoadException: sqs.Message has no load method

It worked in 0.0.1

Metadata

Metadata

Assignees

Labels

bugThis issue is a confirmed bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions