lineofflight / peddler

Amazon Selling Partner API (SP-API) in Ruby
MIT License
307 stars 130 forks source link

Feedback Report Error #106

Closed prathip111 closed 6 years ago

prathip111 commented 6 years ago

I'm trying to pull amazon feedback API (_GET_SELLER_FEEDBACKDATA) but i am getting error response Done_No_Data but I'm getting data manually submitting the report from amazon seller central.

Submitting Request:-

client = MWS::Reports::Client::new( primary_marketplace_id: "A21TJRUU*", merchant_id: "A1EX79S***", aws_access_key_id: "AKIAJPPWNF**", aws_secret_access_key: "ovxM8XKOb67kKg1/sqx26yNBj***", )

response = client.request_report("_GET_SELLER_FEEDBACKDATA")

data = response.parse

Getting Response:-

{"HasNext"=>"true", "ReportRequestInfo"=>[{"ReportType"=>"_GET_SELLER_FEEDBACKDATA", "ReportProcessingStatus"=>"_DONE_NODATA", "EndDate"=>"2018-02-24T05:40:28+00:00", "Scheduled"=>"false", "ReportRequestId"=>"50563017586", "StartedProcessingDate"=>"2018-02-24T05:40:33+00:00", "SubmittedDate"=>"2018-02-24T05:40:28+00:00", "StartDate"=>"2018-02-24T05:40:28+00:00", "CompletedDate"=>"2018-02-24T05:40:39+00:00"}

prathip111 commented 6 years ago

Can you please help me how can i get negative feedback throw API using your gem file in rails..

hakanensari commented 6 years ago

This is not related to the gem.

In any case, report type looks incorrect, try _GET_SELLER_FEEDBACK_DATA_.

prathip111 commented 6 years ago

Thanks for your immediate response...but i have an issue mention below..

I used the above method but i'm not able to get generated report data, It showing "DONE_NO_DATA". But if i pulling manually i got the correct report with data.

Issue Images:-

The images shows the difference between manually generated reports and peddler generated reports:-

issue peddler 1

issue peddler 1 con

When i parsed the response i got (done_no_data) but issue is data available in seller dashboard:-

issue peddler

prathip111 commented 6 years ago

Bro please help me

hakanensari commented 6 years ago

I see what the issue is — MWS seems to default the optional start_date to now, which is not what you want here.

You can see what happened in the Date Range Covered column: you basically generated a report for a particular point in time rather than a range.

Long story short, you should be fine if you specify a start_date when requesting the report.

I should have possibly specified default values in the source code documentation.

prathip111 commented 6 years ago

Thank you for the response its working perfectly now... Appreciate your time and effort

prathip111 commented 6 years ago

I need another help, I facing throttling issue in 'VACUUM' gem (It occurs when i request more than 10 queries in a loop)

request = Vacuum.new('IN')

request.configure( aws_access_key_id: 'AKIAJGAXOKAK****', aws_secret_access_key: 'yPWtg3vMUTDX5IP0Ko8VJ****', associate_tag: 'pen*****' )

response = request.item_lookup( query: { 'ItemId' => '1937707881', 'ResponseGroup' => 'Large' } ) If i used the request repeatedly throttling errors occur...

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.