wp-net / WordPressPCL

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

Unexpected character encountered while parsing value: <. Path #339

Closed dvorak-a closed 3 months ago

dvorak-a commented 1 year ago

Hello, I was using WordPressPCL with JWT Authentication for WP-API and everything worked well. Out of the nowhere maybe after 2 months since last usage of the application just a basic code getting all posts started to throw this error:

System.AggregateException: One or more errors occurred. (Unexpected character encountered while parsing value: <. Path ”, line 0, position 0.)

Strange is that the test instance works without problems.

I tried to reinstall the plugin and change the configuration in .htaccess and wp-config as well, but still the problem is here. Everything is up to date. The JWT auth. version 1.3.2 and wordpress 6.1.1.

Any ideas where can be the problem? Thanks!

dvorak-a commented 1 year ago

Just found that after downgrading the JWT Authentication for WP-API back to the 1.2.6 everything works well.

ThomasPe commented 3 months ago

stale