oauth_problem=signature_invalid when POSTing a new folder
gonzofy
Registered Users Posts: 2 Beginner grinner
I'm creating a script to migrate photo libraries from Fotki to SmugMug and am stuck when creating the folder structure programmatically on SmugMug.
Using OAuth, GET requests work fine. Also, POST requests to https://upload.smugmug.com/ work fine.
However, POST requests return 401 with the following error: oauth_problem=signature_invalid
Confusingly, I can make a GET request to https://api.smugmug.com/api/v2/node/md3GVt!children with no error, but a POST request to the same URL receives the 401 signature_invalid response.
I've tried setting the base URL to:
https://api.smugmug.com
https://api.smugmug.com/
https://api.smugmug.com/api/v2
https://api.smugmug.com/api/v2/
and continue to see the same problem.
Any suggestions on how to debug?
If it helps, I'm using Ruby, the Faraday Middleware gem, and the simple_oauth gem.
Thanks!
Using OAuth, GET requests work fine. Also, POST requests to https://upload.smugmug.com/ work fine.
However, POST requests return 401 with the following error: oauth_problem=signature_invalid
Confusingly, I can make a GET request to https://api.smugmug.com/api/v2/node/md3GVt!children with no error, but a POST request to the same URL receives the 401 signature_invalid response.
I've tried setting the base URL to:
https://api.smugmug.com
https://api.smugmug.com/
https://api.smugmug.com/api/v2
https://api.smugmug.com/api/v2/
and continue to see the same problem.
Any suggestions on how to debug?
If it helps, I'm using Ruby, the Faraday Middleware gem, and the simple_oauth gem.
Thanks!
0
Comments
Feedback to SmugMug team: throwing an oauth error that suggests something is wrong with the signing of the path when there is simply a content-type error is pretty misleading.
SmugMug Product Manager
Hi Gonzofy,
Can you share code here, I am unable to create an album/ folder user API 2.0 . I am using .net
Thanks.