Skip to content

Error 504 (timeout) during loading of images. #12

Description

@joshuabeny1999

Hello,

I created a docker-image for nanogp2 (https://cloud.docker.com/u/joshuabeny/repository/docker/joshuabeny/nanogp2).
But the issue has nothing to do with this. It was already in my old installation. I tried now with the docker image to run nanogp2 on an own subdomain because I use it for more than one website. So I tested a new installation with the latest version of nanogp2. But this seems not to resolve the issue.

The authorization of the accounts works perfectly. But if I want to use any google album with nanogallery2 it loads 1 minute and afterwards following error Message appears:

nanogallery2: Could not retrieve Google data. Error: error, error readyState=4
getResponseHeader=function(a){var b;if(2===t){if(!f){f={};while(b=gb.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b}
getAllResponseHeaders=function(){return 2===t?e:null}
setRequestHeader=function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this}
overrideMimeType=function(a){return t||(k.mimeType=a),this}
statusCode=function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this}
abort=function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}
state=function(){return c}
always=function(){return e.done(arguments).fail(arguments),this}
then=function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()}
promise=function(a){return null!=a?n.extend(a,d):d}
pipe=function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()}
done=function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this}
fail=function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this}
progress=function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this}
complete=function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this}
success=function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this}
error=function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this}
status=404
statusText=error


URL:https://MYHOST/nanogp2.php?nguserid=MYUSERID&ngalbumid=MYALBUMID&alt=json&v=3&kind=photo& [my_nanogallery]

In the developer console of the browser, I see an error 504 - Gateway Timeout.

In the logs.txt it is really strange that it always tries to obtain a new access token for a minute.

...
[21/Sep/2019:18:33:04] new access token obtained - MYUSERID
[21/Sep/2019:18:33:04] new access token obtained - MYUSERID
[21/Sep/2019:18:33:04] new access token obtained - MYUSERID
[21/Sep/2019:18:33:05] new access token obtained - MYUSERID
[21/Sep/2019:18:33:05] new access token obtained - MYUSERID
[21/Sep/2019:18:33:05] new access token obtained - MYUSERID
[21/Sep/2019:18:33:05] new access token obtained - MYUSERID
[21/Sep/2019:18:33:05] new access token obtained - MYUSERID
[21/Sep/2019:18:33:06] new access token obtained - MYUSERID
[21/Sep/2019:18:33:06] new access token obtained - MYUSERID
[21/Sep/2019:18:33:06] new access token obtained - MYUSERID
[21/Sep/2019:18:33:06] new access token obtained - MYUSERID
[21/Sep/2019:18:33:06] new access token obtained - MYUSERID
[21/Sep/2019:18:33:07] new access token obtained - MYUSERID
[21/Sep/2019:18:33:07] new access token obtained - MYUSERID
[21/Sep/2019:18:33:07] new access token obtained - MYUSERID
[21/Sep/2019:18:33:07] new access token obtained - MYUSERID
[21/Sep/2019:18:33:07] new access token obtained - MYUSERID
[21/Sep/2019:18:33:08] new access token obtained - MYUSERID
[21/Sep/2019:18:33:08] new access token obtained - MYUSERID
[21/Sep/2019:18:33:08] new access token obtained - MYUSERID
[21/Sep/2019:18:33:08] new access token obtained - MYUSERID
[21/Sep/2019:18:33:09] new access token obtained - MYUSERID
...

I already tried to revoke and reauthorize my user. This didn't help. I also tried another google account with only a few albums, but this one also did not work.

I hope you could help me fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions