dmcquay / node-apac

node-apac - Node.js client for the Amazon Product Advertising API, including support of Request Signatures
MIT License
499 stars 111 forks source link

Special characters cause invalid key generation #10

Closed Fauntleroy closed 8 years ago

Fauntleroy commented 13 years ago

When searching for strings that include special characters it can cause the Amazon API to return an improper key error.

Attempted "trentemøller" and "trentem%C3%B8ller"

hjortureh commented 12 years ago

+1 on this problem. Fauntleroy - Did you come up with some temporary solution to fix this ?

I´m receiving a 403 error from the Amazon service when performing a search with special characters.

Fauntleroy commented 12 years ago

I haven't fixed the problem using node-apac, but this looks like a promising solution: https://github.com/livelycode/aws-lib

dmcquay commented 8 years ago

This is really old so you guys probably don't care about this anymore, but I'm cleaning out some old bugs. I tried the following query and it worked fine:

opHelper.execute('ItemSearch', {
    'SearchIndex': 'Music',
    'Keywords': 'trentemøller',
    'ResponseGroup': 'ItemAttributes'
}).then((response) => {
    console.log(JSON.stringify(response.result, null, 2))
})

Note that this is using the new update branch which should be merged in the next few days, so if you want to try this yourself, you should use that branch.

I'm going to close this issue for now, but if you care still and are still seeing this problem, please send me a specific query to reproduce.