KKDad / piwigo-api

Ruby gem to interact with Piwigo API
MIT License
0 stars 1 forks source link

401 error when uploading image #7

Open bembudo opened 2 years ago

bembudo commented 2 years ago

Hello,

thank you for the reply, I thought id open a new issue, i seem to be getting a 401 error at the time of the actual upload

I, [2022-01-18T21:23:43.321917 #19151] INFO -- : Login succeeded: {"stat":"ok","result":true} I, [2022-01-18T21:23:43.331532 #19151] INFO -- : Status succeeded I, [2022-01-18T21:23:43.343459 #19151] INFO -- : Album List succeeded: 1 albums retrieved. I, [2022-01-18T21:23:43.343791 #19151] INFO -- : Encoding: Feet First - UTF-8 Uploading I, [2022-01-18T21:23:43.894072 #19151] INFO -- : --> File::Stat: #<File::Stat dev=0x802, ino=6684768, mode=0100644, nlink=1, uid=1000, gid=1000, rdev=0x0, size=2105388, blksize=4096, blocks=4120, atime=2022-01-15 13:33:28 -0500, mtime=2022-01-15 13:33:28 -0500, ctime=2022-01-18 21:00:56 -0500> I, [2022-01-18T21:23:43.894181 #19151] INFO -- : {:date_creation=>"2022-01-18"} E, [2022-01-18T21:23:43.902640 #19151] ERROR -- : Unexpected error: 401 I used the example you provided and this is what I get, your example uses a windows path, I am using Linux not certain if this makes a difference

KKDad commented 2 years ago

It shouldn't make a difference, but I'll have to try it out. What are you trying to do?

bembudo commented 2 years ago

Hi,

I am trying to upload an image to an existing gallery called “Feet First”

On Mon, Jan 24, 2022 at 8:39 AM Adrian Gilbert @.***> wrote:

It shouldn't make a difference, but I'll have to try it out. What are you trying to do?

— Reply to this email directly, view it on GitHub https://github.com/KKDad/piwigo-api/issues/7#issuecomment-1020111068, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARZOLIRTRFDZES23ADHNTRDUXVJADANCNFSM5MIXTEPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>