samirsalman / AmazonOffers-TelegramBot

This project is a Telegram Bot connected to a Telegram Channel that checks Amazon offers and send them to your Channel.
140 stars 48 forks source link

ciao Errore categorie #34

Open enea1982 opened 1 year ago

enea1982 commented 1 year ago

cia se metti altre categorie di amazon ad esempio

categories = { "Casa e Cucina": [ "ecc..", ] }

da questo errore

Status code: 400 Errors : {"type":"com.amazon.paapi5#ValidationException","Errors":[{"Code":"InvalidParameterValue","Message":"The value Casa e Cucina provided in the request for SearchIndex is invalid. Refer https://webservices.amazon.it/paapi5/documentation/locale-reference/italy.html#search-index for valid values."}]} Request ID: 93360c60-79c0-45d3-8e5e-96f7128a064e INFO:root:'NoneType' object is not iterable Error calling PA-API 5.0! Status code: 400 Errors : {"type":"com.amazon.paapi5#ValidationException","Errors":[{"Code":"InvalidParameterValue","Message":"The value Casa e Cucina provided in the request for SearchIndex is invalid. Refer https://webservices.amazon.it/paapi5/documentation/locale-reference/italy.html#search-index for valid values."}]} Request ID: 2dc7ab2c-0ea5-4447-809d-fd7ce1c28aca INFO:root:'NoneType' object is not iterable Error calling PA-API 5.0! Status code: 400 Errors : {"__type":"com.amazon.paapi5#ValidationException","Errors":[{"Code":"InvalidParameterValue","Message":"The value Casa e Cucina provided in the request for SearchIndex is invalid. Refer https://webservices.amazon.it/paapi5/documentation/locale-reference/italy.html#search-index for valid values."}]} Request ID: 3ede10c8-f044-4b0a-91ad-a84b03fe3274 INFO:root:'NoneType' object is not iterable

zacthebigkub commented 1 year ago

Ciao, nell'errore ti indirizza al sito: https://webservices.amazon.it/paapi5/documentation/locale-reference/italy.html#search-index ci sarà una tabella con due colonne, la colonna con i nomi in inglese sarà quella che conterrà le stringhe che dovrai usare per cercare ed a destra quello che rappresentano. Nel tuo caso apposto di scrivere casa e cucina dovresti scrivere HomeAndKitchen

enea1982 commented 1 year ago

come ai detto tu non funziona da sempre errore

zacthebigkub commented 1 year ago

sempre lo stesso errore?

tonibf commented 1 year ago

Si

Antonio Il 3 nov 2022, 18:43 +0100, zacthebigkub @.***>, ha scritto:

sempre lo stesso errore? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

DotHack88 commented 1 year ago

Ciao a tutti. potreste darmi una mano nel settaggio?

paolofrancioso commented 1 year ago

Ciao, devi sempre usare il codice della categoria in inglese che trovi nel link: https://webservices.amazon.it/paapi5/documentation/locale-reference/italy.html#search-index Sono accettate SOLO le categorie elencate e SOLO se inserite in inglese. Attento anche alle maiuscole. Nel tuo caso Casa e Cucina deve essere HomeAndKitchen.

Esempio: voglio i libri di narrativa o i romanzi. Scriverò così:

categories = { "Books": [ "romanzo","narrativa" ] }