kyl191 / lr-stash Goto Github PK
View Code? Open in Web Editor NEWLightroom integration with Sta.sh
Home Page: http://kyl191.deviantart.com/art/LR-Stash-274821227
Lightroom integration with Sta.sh
Home Page: http://kyl191.deviantart.com/art/LR-Stash-274821227
Line ~81 - We catch Lightroom transport errors, but not server errors. Right now if there's a server error, JSON:decode throws an error because we're passing in a table.
Either check for server error, or rework existing error checking to first check for data.status and data.status == "error", then check from Lightroom / server. (2nd one is optimal I think.)
result.description is nil if there's a server error and JSON is not returned, but StashAPI is still attempting to concatenate the nil value to the error message and dying on that.
Because error checking dies on the second try, it successfully tries with a blank stash id, but an invalid folder id. Upload dies because the invalid folder id error is the second error.
Fix would probably be to have an extra variable showing a 'fixed' retry that's not counted against the count, to get an extra retry which would allow it to get past the two errors and should upload successfully.
From http://comments.deviantart.com/1/278275666/2511395749:
I noticed the problem when I tried to update an existing photo (I changed the brightness on the photo or something like that) at the same time as publishing a new photo. It got confused and overwrote the existing photo on DA that I wanted to update with the photo that was new. It's done that twice now...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.