erunion / showtimes

[deprecated] a movie showtimes API
MIT License
52 stars 14 forks source link

Callback wouldn't fire #27

Closed zcsongor closed 8 years ago

zcsongor commented 8 years ago

Hi!

There is no response at all, I did not get anything back from the callback. Is it just me?

Ps.: trying with latlong, 's' object looks okay.

Thanks!

erunion commented 8 years ago

Can you send me the location you're using?

zcsongor commented 8 years ago

'47.473973, 19.047646' Now I got answer, which is undefined.

erunion commented 8 years ago

I'm having trouble replicating this. Can you paste your Showtimes implementation?

zcsongor commented 8 years ago
var showtimes = require('showtimes');
var s = showtimes('47.473973, 19.047646', {});

app.controller('appController', ['$scope', '$q', '$filter', '$state', function ($scope, $q, $filter, $state) {
    s.getTheaters(function (err, theaters) {
        console.log(theaters);
     });
}]);
erunion commented 8 years ago

Ah, hmm. The library is completely untested in a browser environment. Can you log err and see if that's throwing an error back?

zcsongor commented 8 years ago

Ah, yeah, now I got the error message:

"TypeError: Failed to execute 'fetch' on 'Window': Failed to parse URL from //google.com:80/movies?hl=en&near=47.473973%2C%2019.047646&date=0&start=0"

It's a Cordova app, tried on Android 5.0.1.

erunion commented 8 years ago

Awesome, I'll take a look this evening and see if I can figure out what the problem is.

erunion commented 8 years ago

@zcsongor Sorry, I have zero experience with Cordova. You mind either sharing the app you have, or instructions for how you're getting Showtimes into it?