Options

Error 99 read only

GarethLewinGarethLewin 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 :))

Comments

  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 8, 2008
    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 :))

    what method are you calling ?
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    GarethLewinGarethLewin Registered Users Posts: 95 Big grins
    edited February 8, 2008
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 8, 2008

    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
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    GarethLewinGarethLewin Registered Users Posts: 95 Big grins
    edited February 8, 2008
    devbobo wrote:
    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

    Sure.

    So what is anonymous login needed for?
    Just to get a session cookie for password protected galleries?
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 8, 2008
    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.
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    GarethLewinGarethLewin Registered Users Posts: 95 Big grins
    edited February 8, 2008
    devbobo wrote:
    under normal circumstances, a SessionID is required for every method.

    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.)
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 8, 2008
    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 thumb.gif

    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.
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.