Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Forever 'loading' #304

Closed
chrisveness opened this issue Jul 15, 2015 · 10 comments
Closed

Forever 'loading' #304

chrisveness opened this issue Jul 15, 2015 · 10 comments

Comments

@chrisveness
Copy link

Using Node.js / Koa / koa-static, I am seeing a permanent 'loading' symbol when requesting the apidoc index.html.

Using chrome dev tools, I can see that some of the JavaScript resources are having an extra '.js' appended to the filename (jquery, lodash, handlebars), which results in 404's:

image

Any ideas what the issue might be?

@rottmann
Copy link
Member

Hmmm, can't reproduce this. RequireJs loads the needed libs https://github.com/apidoc/apidoc/blob/master/template/main.js
but there is no additional .js

@ameliariely
Copy link

@chrisveness did you ever solve this? I'm having the same problem
screen shot 2015-10-05 at 7 38 12 pm

It looks like it's a problem with the unsafe eval in lodash which doesn't pass the Content Security Policy of our website. It seems like lodash has versions that don't have unsafe evals. Any ideas?

@chrisveness
Copy link
Author

I had parked this, as it wasn't a priority for me. Checking it again now, it appears to have been fixed in the interim: where before in chrome dev tools I saw:

jquery.min.js.js?v=1436951683431
lodash.min.js.js?v=1436951683431

etc, I now see:

jquery.min.js?v=1444130320642
lodash.min.js?v=1444130320642

without the extra '.js' on the end of the filename, and everything is working fine.

@brunerson, I think your problem must be a separate one.

@ameliariely
Copy link

Ok, thanks for the response anyway @chrisveness !

@DisSsha
Copy link

DisSsha commented Mar 24, 2016

Hello,

I have the same issue I can't figure out why it stuck in infinite loop of loading ..
Inspect in Chrome tells me nothing...

@blimasouza
Copy link

Hi,

I have the same issue as well. In my case I am seeing an issue in "api_project.js"
screenshot 2017-07-11 00 00 17
Any idea of what could be the issue here?

@colelloa
Copy link

having the same exact issue and behavior as @blimasouza

@rastalamm
Copy link

I too am having the same issue/behavior as @blimasouza and @colelloa - Anyone have any ideas on how to fix this?

screen shot 2018-05-15 at 16 49 17

@rastalamm
Copy link

Serving this up on nginx and added the below location block to get this sorted.

location ~* \.(?:css|js)$ {
   root /www/project_name/apidoc;
}

@anaankit
Copy link

anaankit commented Aug 3, 2018

The issue is in the apidoc.json file, if you set the version to "version": "1.0.0" it will work, if the version is less than 2 digits, it will load forever.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants