kitajchuk / node-squarespace-server

DEPRECATED! A local Squarespace development server in node.js.
MIT License
186 stars 26 forks source link

Continuous "Fetched fullData" entries after logging in #154

Closed ghost closed 8 years ago

ghost commented 8 years ago

Running into an issue with multiple sites that previously worked without issue. After clicking Login to authenticate, the server will continuously log "Fetched fulldata" entries while the browser shows the login animation. I end up having to stop the server and try again a few times until it successfully get through.

Any idea what could be causing that?

screen shot 2015-12-11 at 7 22 50 pm
kitajchuk commented 8 years ago

It's fetching the full data for all the collections your site has. How many collections do you have? This is the endpoint that shows all collections: /api/commondata/GetCollections/. The endpoint to get one collection is this: /api/commondata/GetCollection/?collectionId={id}.

ghost commented 8 years ago

When the server boots up perfectly, there's no "fetched" line, it just goes straight into the server without showing this stuff. I'm only seeing these "fetched" lines when the server is not actually booting up. It hangs during the after-login indicator. I haven't ever had it get hung up after authentication. I'll keep playing with it.

kitajchuk commented 8 years ago

I'm experiencing this a well now. Must be something related to the process for fetching collection data up front. I'll get into it and see what's up.

kitajchuk commented 8 years ago

Are you using the .sqsrc file for login? Seems that was the issue for me. Maybe I'll take a look at node-keytar as that seems like a better solution anyway :)

kitajchuk commented 8 years ago

After switching to keytar for login creds this went away for me.