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

Show error ERR_HTTP2_PROTOCOL_ERROR when use basic auth #101

Open
f97-2308 opened this issue Jun 30, 2020 · 2 comments
Open

Show error ERR_HTTP2_PROTOCOL_ERROR when use basic auth #101

f97-2308 opened this issue Jun 30, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@f97-2308
Copy link

Hi, i used react-wordpress-hooks but when login basic auth, it is show error: GET com/wp-json/wp/v2/settings net::ERR_HTTP2_PROTOCOL_ERROR. But when I post request with the postman and basic auth then it works. Please check it, thank you.

@JB1905
Copy link
Member

JB1905 commented Jun 30, 2020

Hi 👋, I checked the library with basic auth - I used Basic Auth WordPress plugin. I have no problems with CRUD actions.

Tomorrow I will check the library in WordPress with different configuration.

Could you provide additional information:

  • version of react-wordpress-hooks
  • extension (if you use) for WordPress authentication
  • does the problem involve WordPress installed locally or on a server?

Thanks for your issue!

@f97-2308
Copy link
Author

f97-2308 commented Jul 1, 2020

Hi 👋, I checked the library with basic auth - I used Basic Auth WordPress plugin. I have no problems with CRUD actions.

Tomorrow I will check the library in WordPress with different configuration.

Could you provide additional information:

  • version of react-wordpress-hooks
  • extension (if you use) for WordPress authentication
  • does the problem involve WordPress installed locally or on a server?

Thanks for your issue!

Thanks for reply.

  • I use react-wordpress-hooks lastest version.
  • I used Basic Auth and I can use basic auth with postman or curl.
  • I used the server but I can use basic auth with the postman, so it working. When I use usePosts(), it will return data if I don't set headers on config but I add headers it returns ERR_HTTP2_PROTOCOL_ERROR.

I use react-boilerplate, add WordPressProvider and usePosts(). And just like that.

@JB1905 JB1905 added the bug Something isn't working label Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants