translation-server-old
translation-server-old copied to clipboard
Getting 501 not implemented with translator that is implemented
Not sure if this is a bug with translation-server or the translator (may be both), but the sample urls in this translator https://github.com/zotero/translators/blob/master/zotero.org.js are returning 501 not implemented and just a cursory read of the output looks like translation-server is trying to send a response twice- so something is not quite right!
zotero(3)(+0000001): Translators: Looking for translators for https://www.zotero.org/marksample/items/collectionKey/5RN69IBP/itemKey/58VT7DAA
zotero(3)(+0000003): Loading https://www.zotero.org/marksample/items/collectionKey/5RN69IBP/itemKey/58VT7DAA
zotero(5)(+0000001): CookieSandbox: Managing cookies for www.zotero.org
zotero(5)(+0000000): CookieSandbox: Added cookies for request to www.zotero.org
zotero(5)(+0000717): CookieSandbox: Managing cookies for www.zotero.org
zotero(5)(+0000000): CookieSandbox: Slurped cookies from www.zotero.org
zotero(5)(+0000024): CookieSandbox: Managing cookies for www.zotero.org
zotero(5)(+0000000): CookieSandbox: Added cookies for request to www.zotero.org
zotero(5)(+0000794): CookieSandbox: Managing cookies for www.zotero.org
zotero(5)(+0000000): CookieSandbox: Slurped cookies from www.zotero.org
zotero(3)(+0000010): Translators: Looking for translators for https://www.zotero.org/marksample/items/collectionKey/5RN69IBP/itemKey/58VT7DAA
zotero(4)(+0000008): Translate: Binding sandbox to https://www.zotero.org/marksample/items/collectionKey/5RN69IBP/itemKey/58VT7DAA
zotero(4)(+0000010): Translate: Parsing code for zotero.org
zotero(4)(+0000009): Translate: Parsing code for unAPI
zotero(4)(+0000008): Translate: Parsing code for COinS
zotero(4)(+0000008): Translate: Parsing code for DOI
zotero(4)(+0000006): Translate: Parsing code for Embedded Metadata
zotero(3)(+0000036): Translate: Embedded Metadata: found 4 meta tags.
zotero(3)(+0000018): Translate: All translator detect calls and RPC calls complete
zotero(5)(+0000001): Translate: Running handler 0 for translators
zotero(5)(+0000001): HTTP/1.0 501 Method Not Implemented
Content-Type: text/plain
No translators available
zotero(3)(+0028348): Request already finished; not sending another response
I'm not sure what your server setup is, but the url you're trying to translate is not for a publicly-accessible item, so odds are that the translation server is getting access denied and the zotero.org translator is not recognizing the page.
I haven't looked much closer yet, but it's also possible that zotero.org translator is not compatible with translation server (due to the way zotero.org loads pages). I'll take a look, but you can try a public URL in the mean time.
@mvolz Have you fixed this with https://github.com/mvolz/translation-server/commit/2c57867e1168b93d91ac009a6ffaa2fcf7cfa8cb ?
Nope, that was an unrelated issue (which was fixed in a different change). On Jul 22, 2015 9:23 AM, "Konstantin Baierer" [email protected] wrote:
@mvolz https://github.com/mvolz Have you fixed this with mvolz@2c57867 https://github.com/mvolz/translation-server/commit/2c57867e1168b93d91ac009a6ffaa2fcf7cfa8cb ?
— Reply to this email directly or view it on GitHub https://github.com/zotero/translation-server/issues/13#issuecomment-123613506 .