tommyblue / smugmug-backup

Makes a full backup of a SmugMug account
MIT License
84 stars 15 forks source link

401 Unauthorized #3

Closed esullano closed 4 years ago

esullano commented 4 years ago

Hi Tommy, Thanks for putting this program together, this is awesome! I'm running into this issue below, wondering if you have any ideas?

Getting albums for user esullano... 401 Unauthorized 401 Unauthorized 401 Unauthorized 2019/12/16 09:03:14 https://api.smugmug.com: reading response [ERR] invalid character '<' looking for beginning of value 2019/12/16 09:03:15 https://api.smugmug.com: reading response [ERR] invalid character '<' looking for beginning of value 2019/12/16 09:03:16 https://api.smugmug.com: reading response [ERR] invalid character '<' looking for beginning of value Found 0 albums

3zzy commented 4 years ago

Same :(

sfeakes commented 4 years ago

I get exactly the same error.

tommyblue commented 4 years ago

It seems an authentication problem, did you all follow the instructions in the README under the Credentials paragraph? The invalid character '<' looking for beginning of value error is probably a json decode error, but it's not the main problem here. Authentication is failing (see 401s). Let me know if the procedure in the credentials paragraph was correctly followed, then I'll go on with the investigation. Thanks! 😄

tommyblue commented 4 years ago

To verify you have the correct environment variables, run export and verify USER_SECRET, USER_TOKEN, API_KEY and API_SECRET are included in the printed list, with correct values

sfeakes commented 4 years ago

Yes all correct. All I really wanted was an easy way to download all the content from SmugMug, so I simply modified that python script that's used to get the access_token and access_secret. Added code to that was easier that finding the bug with go code. But I think it's within your oath.go file I seem to remember the header generation part of the code.

tommyblue commented 4 years ago

Any chance you can share the python code you patched?

github-actions[bot] commented 4 years ago

Stale issue message

bradr3d commented 2 years ago

hey @sfeakes any chance you could share the patch