question

kepoohampon-0 avatar image
0 Likes"
kepoohampon-0 asked ·

I'm getting an error that I can't the documentation for, it's with "Create or Replace Inventory Item"

Here's the data: 'product': {'imageUrls': [' http://i.ebayimg.com/images/i/182196556219-0-1/s-l1000.jpg', ' http://i.ebayimg.com/images/i/182196556219-0-1/s-l1001.jpg', ' http://i.ebayimg.com/images/i/182196556219-0-1/s-l1002.jpg'], 'aspects': {'Optical Zoom': ['10x'], 'Storage Type': ['Removable'], 'Brand': ['GoPro'], 'Recording Definition': ['High Definition'], 'Media Format': ['Flash Drive (SSD)'], 'Type': ['Helmet/Action']}, 'description': 'New GoPro Hero4 Helmet Cam. Unopened box.', 'title': 'GoPro Hero4 Helmet Cam'}, 'availability': {'shipToLocationAvailability': {'quantity': 50}}, 'condition': 'NEW'} Here are the headers: {'content-type': 'application/json', 'Authorization': u'Bearer [Access Token]', 'Content-Language': 'en-US'} And here's the error response: {u'errors': [{u'category': u'REQUEST', u'domain': u'ACCESS', u'parameters': [{u'name': u'reason', u'value': u"Unexpected character ('p' (code 112)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')"}], u'longMessage': u'The request has errors. For help, see the documentation for this API.', u'message': u'Invalid request', u'errorId': 2004}]}
errorrequestcreate or replace inventory itemerror 2004
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
twad_2 avatar image
0 Likes"
twad_2 answered ·
If you are programming in Python, convert dictionary to json by: import json data = json.dumps(your dictionary)
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.