-
Notifications
You must be signed in to change notification settings - Fork 100
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
error: "Request failed with status code 401" #8
Comments
An issue occurred because I've followed all instructions and set the WordPress site address to http://localhost:3000 |
Is there a more elegant solution to this as using the normal WordPress address will cause the permalinks to link to the wordpress site not the headless Nextjs site |
@Laurynas-Sirgedas , @GPorter43
|
@imranhsayed,
It was the same for trying to use function getStaticProps() with this endpoint:
But still not elegant, and would be perfect if this was resolved with the Wordpress General settings. Any chance you could look into this? |
When I was trying to reach http://localhost:3000/api/get-products I get an error
{ success: false, products: [ ], error: "Request failed with status code 401", }
The text was updated successfully, but these errors were encountered: