Skip to content
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

GetLowestPricedOffers #3876

Open
wants to merge 15 commits into
base: develop
from

Conversation

@ctdax
Copy link

commented Jul 16, 2019

I am attempting to add the GetLowestPricedOffers operation to boto. I have tried for quite some time now yet i cannot get it to work. Any idea what I am doing wrong? Below is a sample xml response from mws scratchpad, below that is my added code (highlighted code).

lowestpricexml1

lowestpricexml2

lowestpricexml3

lowestpricexml4

connection.py
boto_connection_error

response.py
boto_response_error1

boto_response_error4

Here is the error I am getting

File "C:/Users/Colby/PycharmProjects/amazon/sellercheck.py", line 40, in
asin = mws.get_lowest_priced_offers_for_asin(MarketplaceId=marketplaceId, ASIN='B012U5263G', ItemCondition='New')
File "C:\Users\Colby\PycharmProjects\amazon\venv\lib\site-packages\boto\mws\connection.py", line 167, in requires
return func(*args, **kw)
File "C:\Users\Colby\PycharmProjects\amazon\venv\lib\site-packages\boto\mws\connection.py", line 261, in wrapper
return func(self, request, response, *args, **kw)
File "C:\Users\Colby\PycharmProjects\amazon\venv\lib\site-packages\boto\mws\connection.py", line 848, in get_lowest_priced_offers_for_asin
return self._post_request(request, kw, response)
File "C:\Users\Colby\PycharmProjects\amazon\venv\lib\site-packages\boto\mws\connection.py", line 332, in _post_request
response.reason, body)
File "C:\Users\Colby\PycharmProjects\amazon\venv\lib\site-packages\boto\mws\exception.py", line 29, in call
supplied = self.find_element(server.error_code, '', ResponseError)
File "C:\Users\Colby\PycharmProjects\amazon\venv\lib\site-packages\boto\mws\response.py", line 154, in find_element
element = self.search_scopes(action + suffix)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

@garnaat

This comment has been minimized.

Copy link
Member

commented on 836ba65 Feb 4, 2012

Awesome start and a very impressive night's work! I think the next thing to look at is request signing. Right now boto has a pluggable authentication mechanism to sign requests in various ways depending on the requirements of the service. It is my understanding that requests also has a pluggable authentication mechanism. We shouldn't need to have two. I'm going to try to find some time this weekend to investigate this.

This comment has been minimized.

Copy link
Contributor

replied Feb 5, 2012

Good deal. I'll probably be trying to restore more S3 functionality. If you get a chance, maybe you could see what's wrong with DynamoDB. It has something to do with the session keys and the response headers and requests.

This comment has been minimized.

Copy link
Member

replied Feb 5, 2012

I'm getting a hang when I try to call get_contents_as_string for a Key object. Are you seeing that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.