Error 99 read only
GarethLewin
Registered Users Posts: 95 Big grins
Hi, I noticed the following has been added:
<?xml version="1.0" encoding="utf-8"?>
<rsp stat="fail" mode="read-only">
<err code="99" msg="read-only mode"/>
</rsp>
Thanks, that makes it easier for me to this situation.
But SmugSaver (and a lot of smugmug apps) doesn't do any writing. Would it be possible to just return this error for any "set" style functions?
(Hoping this gets more attension than my feature request )
<?xml version="1.0" encoding="utf-8"?>
<rsp stat="fail" mode="read-only">
<err code="99" msg="read-only mode"/>
</rsp>
Thanks, that makes it easier for me to this situation.
But SmugSaver (and a lot of smugmug apps) doesn't do any writing. Would it be possible to just return this error for any "set" style functions?
(Hoping this gets more attension than my feature request )
0
Comments
what method are you calling ?
SmugMug API Developer
My Photos
http://api.smugmug.com/services/api/rest/1.2.1/?method=smugmug.login.anonymously&APIKey=<Redacted>
Gareth,
During read-only mode our sessions are disabled, so we need to return that error message. However, it's only really a soft error in so far that anonymous or non-owner calls can still be made to most methods that only return data.
Does that make sense ?
Cheers,
David
SmugMug API Developer
My Photos
Sure.
So what is anonymous login needed for?
Just to get a session cookie for password protected galleries?
under normal circumstances, a SessionID is required for every method.
SmugMug API Developer
My Photos
So if I get error 99, I can change my behavior to just not send SessionID with all my api calls?
Also, if I can't login, can I still do the albums.get with a nickname?
(Obviously I can't test error 99, so I need to know so I can put as much in place for the next time you guys do a site update.)
yes and yes
there might be something, that I can do so you can test out the error 99 stuff when you have it implemented, let me know when you're done.
SmugMug API Developer
My Photos