-
Notifications
You must be signed in to change notification settings - Fork 50
Uploading an image results in an empty array and the application hanging #101
Comments
Technically neither of those things are signs that your upload went wrong, although they suggest something else might be wrong. If there were no errors, presumably the upload worked and your Flickr page will now show that image in your stream. Is it not there? The code that does the actual post and leads to a result callback is https://github.com/Pomax/node-flickrapi/blob/master/src/utils.js#L409-L419, so seeing an empty array suggests you do hit https://github.com/Pomax/node-flickrapi/blob/master/src/utils.js#L416 but the response is not what the code expects. In this case I'd recommend doing a quick code modification: slot
and see what that's in that response |
The image was never uploaded. I was able to get the image to upload using the same api credentials with https://github.com/flickr/flickr-sdk I'll give your code change a try and see what happens. |
I have the exact same issue. Moving out to https://github.com/flickr/flickr-sdk |
@LahiruBandara cool - before you do, or while, can you supply the information that @kodie ended up not following up with so that perhaps this bug can still be fixed for others that run into it? |
same here... response is empty on image upload = [ ] |
Guys, i add a pull request replacing the current response parsing using the xml2json module... also will give the correct error response (that no show in the actual code, that's why response is empty) @Pomax |
nice, if you can update that to a single PR I'll be happy to review and merge. |
There is @Pomax o/ |
@madkoding why did you close both PRs? |
closed by mistake :P |
hehe, gotcha =) |
How is the status now? I just got this issue. |
Here is my code:
After a couple of seconds I get
[]
printed out in the console and the application never finishes running so I have to hit CTRL+C to force end the app.The text was updated successfully, but these errors were encountered: