imdb not working on zotero on localhost (looks like in production too)
Open, Needs TriagePublic

Description

zotero(2)(+0000000): Translate: Translation using IMDb failed: 
string => SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
stack => parseIMDBapi@IMDb:94
Mvolz created this task.Nov 26 2015, 4:44 PM
Mvolz updated the task description. (Show Details)
Mvolz raised the priority of this task from to Needs Triage.
Mvolz added a project: Citoid.
Mvolz added a subscriber: Mvolz.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptNov 26 2015, 4:44 PM

Citoid in production returns:

$ curl "http://localhost:1970/api?format=mediawiki&search=http%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt0133093%2F"
> GET /api?format=mediawiki&search=http%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt0133093%2F HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:1970
> Accept: */*
> 
< HTTP/1.1 200 OK
< access-control-allow-origin: *
< access-control-allow-headers: accept, x-requested-with, content-type
< access-control-expose-headers: etag
< x-xss-protection: 1; mode=block
< x-content-type-options: nosniff
< x-frame-options: SAMEORIGIN
< content-security-policy: default-src 'self'; object-src 'none'; media-src *; img-src *; style-src *; frame-ancestors 'self'
< x-content-security-policy: default-src 'self'; object-src 'none'; media-src *; img-src *; style-src *; frame-ancestors 'self'
< x-webkit-csp: default-src 'self'; object-src 'none'; media-src *; img-src *; style-src *; frame-ancestors 'self'
< Content-Type: application/json; charset=utf-8
< Content-Length: 412
< Vary: Accept-Encoding
< Date: Thu, 26 Nov 2015 17:34:16 GMT
< Connection: keep-alive
< 
[{"url":"http://www.imdb.com/title/tt0133093/","itemType":"webpage","title":"The Matrix (1999)","websiteTitle":"IMDb","abstractNote":"Directed by Andy Wachowski, Lana Wachowski.  With Keanu Reeves, Laurence Fishburne, Carrie-Anne Moss, Hugo Weaving. A computer hacker learns from mysterious rebels about the true nature of his reality and his role in the war against its controllers.","accessDate":"2015-11-26"}]
Mvolz moved this task from Backlog to Production on the Citoid board.Jan 12 2016, 10:14 AM
czar renamed this task from imbd not working on zotero on localhost (looks like in production too) to imdb not working on zotero on localhost (looks like in production too).Aug 8 2016, 6:39 PM
Restricted Application added a project: VisualEditor. · View Herald TranscriptAug 8 2016, 6:39 PM
czar added a subscriber: czar.EditedAug 8 2016, 6:41 PM

This is also another case where we should warn users that IMDb is generally not a reliable source and likely shouldn't be referenced in the first place... https://en.wikipedia.org/wiki/Wikipedia:External_links/Perennial_websites#IMDb

T98675#1530345

Mvolz moved this task from Production to Zotero & External on the Citoid board.Oct 29 2016, 8:10 AM