You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, in my attempt to create albums automatically, I have realized, that if the UrlName already exists, it directly does not return anything to me, but I skip the 409 client error, but without being object or anything.
How can I get this code to control it with an if?
My idea is that if it already exists, add a number to the UrlName using a function, and if that also exists, add 1 to the previous number. This part has already been solved, I lack control if it exists...
Thanks in advance!
The text was updated successfully, but these errors were encountered:
The best thing to do is catch the GuzzleHttp\Exception\ClientException exception Guzzle throws when you attempt to create an album that already exists with that name, adjust the name by appending 1 to the number and try again.
I'm gonna take the silence on this issue as confirmation that you're resolved all your issues and I've answered all your questions. If you have any further issues or questions, please feel free to open a new issue.
Hello, in my attempt to create albums automatically, I have realized, that if the UrlName already exists, it directly does not return anything to me, but I skip the 409 client error, but without being object or anything.
How can I get this code to control it with an if?
My idea is that if it already exists, add a number to the UrlName using a function, and if that also exists, add 1 to the previous number. This part has already been solved, I lack control if it exists...
Thanks in advance!
The text was updated successfully, but these errors were encountered: