upload failure with error code 1

PreranaPrerana Registered Users Posts: 7 Beginner grinner
edited September 5, 2013 in SmugMug Support
Hello,

I am trying to upload photos to the email id "pbmdroidtest@gmail.com" using SmugMug api.
The upload is failing with the following error:-

{
"STAT": "FAIL",
"METHOD": "SMUGMUG.IMAGES.UPLOAD",
"CODE": 1,
"MESSAGE": "WE'RE SORRY, BUT YOU DON'T APPEAR TO BE LOGGED IN TO THAT ACCOUNT. PLEASE LOGIN AND TRY AGAIN."
}

I am working on the android version of PicBackMan. PicBackMan is our desktop application(Photo-Uploader).The photos are being uploaded to the same user id successfully using the desktop version but throws above error while sending through Android app.
User Authentication is done successfully and i am unable to find any reason for such error.
Can anyone help me through this??
Thanks in advance,
Prerana.

Comments

  • PreranaPrerana Registered Users Posts: 7 Beginner grinner
    edited September 3, 2013
    Not received a single response or help in so many days! very sad...
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited September 3, 2013
    Hi Prerana,

    What method of authentication are you using ? OAuth or Basic ?

    Which upload method are you using ? Can you provide some same headers from requests that are failing ?

    Thanks,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • PreranaPrerana Registered Users Posts: 7 Beginner grinner
    edited September 3, 2013
    Hi David,
    I am using OAuth for authentication.We are trying to upload using Raw Http Post method using http://upload.smugmug.com/ as endpoint.

    We tried to upload at around 8:45 AM Tuesday, September 3, 2013 (GMT).
    Following was the response we got:-

    Smugmug upload status:= {
    "STAT": "FAIL",
    "METHOD": "SMUGMUG.IMAGES.UPLOAD",
    "CODE": 5,
    "MESSAGE": "SYSTEM ERROR"
    }

    Note : It doesn't fail instantly, it tries to upload for sometime.

    Below is one information we sent during upload, let us know if you require any further header info
    request.UserAgent = "picbackman android uploader";

    Thanks a ton in advance!
    Prerana
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited September 3, 2013
    Hi Prerana,

    Thanks for that info...are you including the Authorization header in your upload request ?

    Can you please provide a sample of your request headers so that we can confirm if they look correct ?

    Thanks,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • PreranaPrerana Registered Users Posts: 7 Beginner grinner
    edited September 5, 2013
    devbobo wrote: »
    Hi Prerana,

    Thanks for that info...are you including the Authorization header in your upload request ?

    Can you please provide a sample of your request headers so that we can confirm if they look correct ?

    Thanks,

    David
    Following the header information we are sending:-

    request.Headers.Add ("X-Smug-Pretty", "true");
    request.Headers ["Content-MD5"] = str6;
    request.Headers.Add ("Authorization", "OAuth oauth_consumer_key="<CONSUMER KEY>",oauth_token="<AUTH TOKEN>",oauth_signature_method="HMAC-SHA1",oauth_signature="<url encoded string>",oauth_timestamp="<timeStamp>",oauth_nonce="<nonce>", oauth_version="1.0");
    request.Headers.Add ("X-Smug-Version", "1.2.0");
    request.Headers.Add ("X-Smug-ResponseType", "JSON");
    request.Headers.Add ("X-Smug-AlbumID", "30....43");
    request.Headers.Add ("X-Smug-FileName", "<FULL PATH>");
    Thanks,
    Prerana.
Sign In or Register to comment.