wp-net / WordPressPCL

This is a portable library for consuimg the WordPress REST-API in (almost) any C# application
MIT License
337 stars 129 forks source link

Comment Status Error #228

Closed dogukanturhal closed 2 years ago

dogukanturhal commented 3 years ago

My program was working couple of days ago. But today when i start my program i get this error. Error:Error converting value "" to type 'WordPressPCL.Models.OpenStatus'. Path 'comment_status', line 1, position 7458.

            if (await client.IsValidJWToken())
            {
                var post = new Post
                {
                    Title = new Title(title),
                    Content = new Content(content),
                    Categories = new int[] { 4026, 4039 }

                };
                await client.Posts.Create(post);
                Console.WriteLine("Success");
                Console.ReadLine();
            }`
ThomasPe commented 3 years ago

Did you update the NuGet Package? Or do you think this issue was introduced with a WordPress update?

dogukanturhal commented 3 years ago

After the error, i updated the NuGet Package but still getting the error. Maybe, this issue because of latest WordPress update.

ThomasPe commented 3 years ago

Did you get anywhere with this issue? I'm not seeing anything similar with our integration tests on the latest WordPress version.

ThomasPe commented 2 years ago

I’m closing this issue because it has been inactive for a while. Please feel free to reopen if you still encounter this issue. Thanks!