Okay, there does seem to be something wrong with the amazon translator.
There was a report earlier today
http://forums.zotero.org/discussion/13003/using-zotero-with-amazon/
of it not working with
http://www.amazon.com/Approaches-Cambridge-Studies-International-Relations/dp/0521466512/ref=sr_1_1?ie=UTF8&s=books&qid=1276101391&sr=1-1
which seems to work for me on some page loads and not others.
And the ym81tlv's sample does not seem to work for me at all.
NYT is the New York Times a translator is what lets you read data from a site into Zotero.
The amazon book you link to doesn't work for me - here's the error if someone else wants to look at the translator: [JavaScript Error: "TypeError: texts[1] is undefined" {file: "file:///home/sebastian/.mozilla/firefox/wkxw8okh.default/zotero/translators/Amazon.com.js" line: 0}]
(2)(+0000152): Translate: Translation using Amazon.com failed: message => texts[1] is undefined fileName => chrome://zotero/content/xpcom/translate.js lineNumber => 943 stack => ("\n<ItemLookupErrorResponse xmlns=\"http://ecs.amazonaws.com/doc/2006-06-28/\"> <Error> <Code>SignatureDoesNotMatch</Code> <Message>The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.</Message> </Error> <RequestID>a9711888-bb4a-4c2a-8831-81adc533344b</RequestID></ItemLookupErrorResponse>", [object XMLHttpRequest],"http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=AKIAIPYIWJ24AGZJ64AA&ItemId=\n 0521466512&Operation=ItemLookup&ResponseGroup=ItemAttributes&Service=AWSECommerceService&Timestamp=2010-06-09T23%3A30%3A32Z&Version=2006-06-28&Signature=COWGRzLvswT4ETBezOR3xToLhRpfE1ASwIWCaZvOOpI%3D")@chrome://zotero/content/xpcom/translate.js:943
Looks like Zotero needs to check its AWS access settings.
does that mean i cant import any book from amazon?
ive checket for translator and its up to date
does any one know if a parental (net nanny) problematic with zotero?
The problem is not on your end. We don't know yet what exactly is causing this, but the Amazon translator is a high priority one. Try using library catalogs, like the Library of Congress, if you urgently need to save books.
Other sources usually have high quality data than Amazon in any case.
My tentative guess is that something is indeed wrong with the AWS signatures, as the error message indicates, but that the problem is only on some of Amazon's servers -- either it's a glitch or it hasn't yet propagated to all of them.
nope, sorry, doesn't work for me yet. And yes, I have restarted Firefox and I have used diff to check that the amazon translator in my data directory is in fact ajlyons version.
Edit: I also still get the failed key authorization in the debug.
No prizes yet, I suppose. It now works for me, so I don't have any more debug output to diagnose. adamsmith-- can you post broken URLs and the relevant pieces of debug output?
(2)(+0000115): Translate: Translation using Amazon.com failed: message => texts[1] is undefined fileName => chrome://zotero/content/xpcom/translate.js lineNumber => 943 stack => ("\n<ItemLookupErrorResponse xmlns=\"http://ecs.amazonaws.com/doc/2006-06-28/\"><Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.</Message></Error><RequestID>8b759dbc-e65f-4d39-a153-61904a17feab</RequestID></ItemLookupErrorResponse>",[object XMLHttpRequest],"http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=AKIAIPYIWJ24AGZJ64AA&ItemId=\n 0495506087&Operation=ItemLookup&ResponseGroup=ItemAttributes&Service=AWSECommerceService&Timestamp=2010-06-10T00%3A22%3A16Z&Version=2006-06-28&Signature=VsK%2Fgrh1jhwY9TAuNBtX0RK0mIi2jcLpUYpg220Y3lE%3D")@chrome://zotero/content/xpcom/translate.js:943
Ah. I was hurrying, and I don't know the Amazon translator very well. Try downloading and installing again from the link above; I've updated it per fcheslack's comment.
ym81tlv and others: Your copy of Zotero should auto-update within 24 hours, or you can update manually by clicking Update Now in the General pane of the Zotero prefs.
Also, make sure translators are working in general (e.g. NYTs).
but- nyt and translators mean nothing to me
can you please explain
There was a report earlier today
http://forums.zotero.org/discussion/13003/using-zotero-with-amazon/
of it not working with
http://www.amazon.com/Approaches-Cambridge-Studies-International-Relations/dp/0521466512/ref=sr_1_1?ie=UTF8&s=books&qid=1276101391&sr=1-1
which seems to work for me on some page loads and not others.
And the ym81tlv's sample does not seem to work for me at all.
a translator is what lets you read data from a site into Zotero.
The amazon book you link to doesn't work for me - here's the error if someone else wants to look at the translator:
[JavaScript Error: "TypeError: texts[1] is undefined" {file: "file:///home/sebastian/.mozilla/firefox/wkxw8okh.default/zotero/translators/Amazon.com.js" line: 0}]
Try this one:
http://www.amazon.com/Blame-Welfare-Ignore-Poverty-Inequality/dp/0521690455/
(3)(+0000046):
HTTP GET http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=AKIAIPYIWJ24AGZJ64AA&ItemId=
0521466512&Operation=ItemLookup&ResponseGroup=ItemAttributes&Service=AWSECommerceService&Timestamp=2010-06-09T23%3A30%3A32Z&Version=2006-06-28&Signature=COWGRzLvswT4ETBezOR3xToLhRpfE1ASwIWCaZvOOpI%3D
(2)(+0000152): Translate: Translation using Amazon.com failed:
message => texts[1] is undefined
fileName => chrome://zotero/content/xpcom/translate.js
lineNumber => 943
stack => ("\n<ItemLookupErrorResponse xmlns=\"http://ecs.amazonaws.com/doc/2006-06-28/\">
<Error>
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.</Message>
</Error>
<RequestID>a9711888-bb4a-4c2a-8831-81adc533344b</RequestID></ItemLookupErrorResponse>",
[object XMLHttpRequest],"http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=AKIAIPYIWJ24AGZJ64AA&ItemId=\n 0521466512&Operation=ItemLookup&ResponseGroup=ItemAttributes&Service=AWSECommerceService&Timestamp=2010-06-09T23%3A30%3A32Z&Version=2006-06-28&Signature=COWGRzLvswT4ETBezOR3xToLhRpfE1ASwIWCaZvOOpI%3D")@chrome://zotero/content/xpcom/translate.js:943
Looks like Zotero needs to check its AWS access settings.
ive checket for translator and its up to date
does any one know if a parental (net nanny) problematic with zotero?
Other sources usually have high quality data than Amazon in any case.
It seems to work if you trim the whitespace from asin before it is placed in params. Anyone care to confirm?
Trimming the whitespace works for me -- I've uploaded a fixed translator that works for me. If you see this problem, go to http://github.com/ajlyon/zotero-bits/raw/master/Amazon.com.js and save the file to the translators directory of your Zotero data directory (http://www.zotero.org/support/zotero_data).
Post here if it works.
@ym81tlv: Try downloading and installing the fixed translator from the link above.
And yes, I have restarted Firefox and I have used diff to check that the amazon translator in my data directory is in fact ajlyons version.
Edit: I also still get the failed key authorization in the debug.
edit: Hmm. I'm at a loss again.
var params = "AWSAccessKeyId=AKIAIPYIWJ24AGZJ64AA&ItemId=" + asin +
4)(+0002185): Translate: Parsing code for Amazon.com
(3)(+0000019): HTTP GET http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=AKIAIPYIWJ24AGZJ64AA&ItemId=
0495506087&Operation=ItemLookup&ResponseGroup=ItemAttributes&Service=AWSECommerceService&Timestamp=2010-06-10T00%3A22%3A16Z&Version=2006-06-28&Signature=VsK%2Fgrh1jhwY9TAuNBtX0RK0mIi2jcLpUYpg220Y3lE%3D
(2)(+0000115): Translate: Translation using Amazon.com failed:
message => texts[1] is undefined
fileName => chrome://zotero/content/xpcom/translate.js
lineNumber => 943
stack => ("\n<ItemLookupErrorResponse xmlns=\"http://ecs.amazonaws.com/doc/2006-06-28/\"><Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.</Message></Error><RequestID>8b759dbc-e65f-4d39-a153-61904a17feab</RequestID></ItemLookupErrorResponse>",[object XMLHttpRequest],"http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=AKIAIPYIWJ24AGZJ64AA&ItemId=\n 0495506087&Operation=ItemLookup&ResponseGroup=ItemAttributes&Service=AWSECommerceService&Timestamp=2010-06-10T00%3A22%3A16Z&Version=2006-06-28&Signature=VsK%2Fgrh1jhwY9TAuNBtX0RK0mIi2jcLpUYpg220Y3lE%3D")@chrome://zotero/content/xpcom/translate.js:943
name => TypeError
url => http://www.amazon.com/Skills-Helping-Individuals-Families-Communities/dp/0495506087/ref=sr_1_1?ie=UTF8&s=books&qid=1276125198&sr=8-1
downloadAssociatedFiles => true
automaticSnapshots => true
:-) good job.
If we can get another confirmation that this works from another user, I'll commit the changes to SVN and maybe this can be pushed out quickly.