Skip to content

nonce_used error when getting image information #68

@MichelleCox

Description

@MichelleCox

Hello,

I am using the library to connect my club's Drupal website to Smugmug. I have it working for uploading images and for getting the image count of a gallery. I seem to be stuck on viewing an image, though.

When I try to access an image via its key, I get:

Client error: GET https://api.smugmug.com/api/v2/image/WprRLwK?_verbosity=1 resulted in a 401 Unauthorized response:
{"Code":401,"Message":"oauth_problem=nonce_used"}

It's a public image so you can put that URL into a browser and see that it exists and retrieves the information just fine without oauth. I don't know a lot about oauth. From what little I could get out of Google, it sounds like some token is being sent more than once? But the tokens always stay the same so what I'm finding isn't making any sense to me.

$this->client->get("/api/v2/album/$key"); works but $this->client->get("/api/v2/image/$key"); gets me the nonce_used error.

I'd appreciate any help. I tried posting in the Smugmug forum but haven't gotten any response. Hoping you can help me as I'm totally stuck at this point.

Thanks,

Michelle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions