Closed davidvexel closed 5 years ago
If I change the UrlName
to WP-chico-local-test-smugmug-324
works. lol.
Seems like the wp
lowercase letters doesn't like to UrlName
param, it only works if I use them as uppercase WP
... Very odd. Closing this issue for now. Thanks.
@davidvexel, I believe that SmugMug folders, galleries, and pages are required to start with a number or a capital letter.
The on the live site, SmugMug site will rewrite HTTP requests for folders, galleries, and pages that start with a lowercase letter to make them start with uppercase. However, the rest of the URL will still pay attention to case.
As such, example.com/January-2019/wP-chico-local-test-smugmug-324 will resolve to example.com/January-2019/WP-chico-local-test-smugmug-324 and display your gallery. But example.com/January-2019/wp-chico-local-test-smugmug-324 will throw a 404 error.
I do not believe the API will correct for lowercase initial letters on requests.
Hey @danielmreck, you're so right, I didn't know about this and made me struggle for a bit, thanks you!
Has anyone had 400 Bad Request errors when creating albums?
This is my code
This is my request data:
This is my endpoint
/api/v2/folder/user/myuser/January-2019!albums
And I'm getting this error:
{"Response":{"Uri":"/api/v2/folder/user/myuser/January-2019!albums?_verbosity=1","Locator":"Album","LocatorType":"Objects"},"Code":400,"Message":"Bad Request"}
Any ideas?
Thanks in advance!