Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateAlbumAsync Album creation SORT option invalid. #198

Open
nesanmano opened this issue Jul 27, 2023 · 0 comments
Open

CreateAlbumAsync Album creation SORT option invalid. #198

nesanmano opened this issue Jul 27, 2023 · 0 comments
Assignees

Comments

@nesanmano
Copy link

The problem I am facing is with the creation of a new album. I keep getting the an exception saying that the parameters are invalid: It does mention the field sort. I believe that the provided value is valid.

System.AggregateException : One or more errors occurred.
  ----> VimeoDotNet.Exceptions.VimeoApiException : Error retrieving information from Vimeo API.
Code: BadRequest
Message: {"invalid_parameters":[{"field":"sort","error_code":2204,"error":"You have provided an invalid parameter. Please contact developer of this application.","developer_message":"The parameters passed to this API endpoint didn't pass Vimeo's validation. Please check the invalid_parameters list for more information."}],"error":"You have provided an invalid parameter. Please contact developer of this application.","link":null,"developer_message":"The parameters passed to this API endpoint didn't pass Vimeo's validation. Please check the invalid_parameters list for more information.","error_code":2204}
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at NomadLogic.Common.Util.Vimeo.VimeoUtil.CreateAlbum(String name, String description, String password, VimeoAlbumSortEnum sortOptions) in F:\Nomadlogic\Git\iBrand_Client_C_Sharp_Desktop\ibrand_common\Util\Vimeo\VimeoUtil.cs:line 229
   at NomadLogic.Test.Common.Util.VimeoUtilTest.TestAlbumCrudMethod() in F:\Nomadlogic\Git\iBrand_Client_C_Sharp_Desktop\ibrand_common_test\ibrand_common_test\Common\Util\VimeoUtilTest.cs:line 71
--VimeoApiException
   at VimeoDotNet.VimeoClient.<ExecuteApiRequest>d__36`1.MoveNext() in /_/src/VimeoDotNet/VimeoClient_Async.cs:line 263
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at VimeoDotNet.VimeoClient.<ExecuteApiRequest>d__35`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at VimeoDotNet.VimeoClient.<CreateAlbumAsync>d__2.MoveNext() in /_/src/VimeoDotNet/VimeoClient_Albums.cs:line 60

my code:

EditAlbumParameters editAlbumParameters =
               new EditAlbumParameters()
               {
                   Name = name,
                   Description = description,
                   Sort = EditAlbumSortOption.AddedLast
               };  
          
           if (true)
           {
               editAlbumParameters.Privacy = EditAlbumPrivacyOption.Password;
               editAlbumParameters.Password = "password";
           }

           var res = _client.CreateAlbumAsync(UserId.Me, editAlbumParameters).Result;
@mfilippov mfilippov self-assigned this Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants