smugpy icon indicating copy to clipboard operation
smugpy copied to clipboard

"invalid API key" with api_version="1.2.2" and secure=True

Open brettatoms opened this issue 11 years ago • 3 comments

This

smug = SmugMug(api_key=API_KEY, api_version="1.2.2", secure=True, app_name=APP_NAME)
smug.login_withPassword(APIKey=API_KEY, EmailAddress=USER, Password=PASSWORD)
albums = smug.albums_get()

always give the following error:

smugpy.SmugMugException: SmugMug API Error for method smugmug.albums.get: (18) invalid API key

If you create the SmugMug object with secure=False it works fine.

brettatoms avatar Dec 15 '13 13:12 brettatoms

I am able to recreate the issue as you reported it. I can confirm when I manually run these methods outside of this library that this same behavior does not occur. I will have to dig into this one a little more.

chrishoffman avatar Dec 18 '13 05:12 chrishoffman

Did this issue get resolved? or is there a work around?

wreleven avatar Oct 05 '15 23:10 wreleven

To clarify I'm only asking since te as of Oct 15 they're forcing secure urls. I've attempted to switch the secure flag but I'm running into this same issue.

wreleven avatar Oct 06 '15 00:10 wreleven