lineofflight / peddler

Amazon Selling Partner API (SP-API) in Ruby
https://lineofflight.github.io/peddler/
MIT License
307 stars 130 forks source link

Report 'GET_XML_BROWSE_TREE_DATA' - Parser - XML - Nil #151

Closed leoplct closed 4 years ago

leoplct commented 4 years ago

I am requesting the '_GET_XML_BROWSE_TREEDATA' report. self.downloadReport('_GET_XML_BROWSE_TREE_DATA_', options: {report_options: "BrowseNodeId=454824031"})`

I can successfully retrieve the report .inspect()

puts "DATA: #{client.get_report(report_id).inspect}"

DATA: #<Excon::Response:0x00007f8c82a636a8 @data={:body=>"\n454824031\n\n454824031\n<browseNodeAttributes count=\"1\">\n<attribute name=\"recommended_browse_nodes\">454824031\n\nSoft Rifle Cases\nSoft Rifle

but if I execute puts report.parse() returns

nil

hakanensari commented 4 years ago

@leoplct Thanks for reporting, the above commit should fix this