Pomax / node-flickrapi

A node.js (and client-library) implementation of the Flickr API with oauth API key authentication and API method proxying

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document a note about building the IA index.

mkornatz opened this issue · comments

When I first started with this module, the flickr.tokenOnly method wasn't calling my callback method. I thought it was a bug in my code/framework, until I noticed that it was just hanging as a result of the module building an index of all methods in the API.

It would be helpful to have some documentation noting that while the api method index is being built, it could hold-up your use of the library.

commented

interesting - is it not showing a progress bar while it's building?

It's not showing the progress bar, no. I'm using it within a meteor.js package, which is the most likely culprit of suppressing the progress bar output. So, this definitely shouldn't be considered a bug in flickrapi.

There's another issue I'm having by using meteor.js, actually. In development, Meteor re-builds the app quite frequently and it seems to be deleting the ./data directory. So, every time the app refreshes, it has to rebuild the method index. This is causing wait times of about 5 minutes until I can actually use the API in my server-side code. I'm going to be investigating a workaround/fix for that.

commented

Is that meteor or the deploy infrastructure? I know heroku loves to delete a slug on a dyno when it goes to sleep, and then when it wakes up it just gets a copy of the master slug and so lacks everything that gets copied in after a first run.