Please tel the correct solution for the installation... Getting the above error after installation.
1.Failed to load resource: the server responded with a status of 404 (Not Found)
2.Error at react_comments.js?p96mgd:1

Comments

Manoj Raj.R created an issue. See original summary.

Manoj Raj.R’s picture

Issue summary: View changes
minnur’s picture

@Manoj Raj.R looks like you your Rest resources are not available. Can you verify module specific rest sources enabled and make sure users have permission to use them.

Manoj Raj.R’s picture

Rest resources??
can u be specific with that...
And i have given permission for users to post comment...

void--’s picture

Priority: Major » Normal
StatusFileSize
new181.23 KB

Manoj, can you please provide a screenshot of the error in your console?

Regarding the rest resources, if you enable the `rest ui` module and visit `/admin/config/services/rest` you should see (at least) three enabled resources: Comment, Comments, and Me

Manoj Raj.R’s picture

StatusFileSize
new28.93 KB

Hi Void,
I have done the following you have mentioned with the rest ui model. after that also i get this error.

void--’s picture

Hmmm, our resource plugin's don't have any code that returns a 404 response, are you 100% sure these resources are enabled? Can you send me a screen shot of your enabled rest resources in the rest ui?

Manoj Raj.R’s picture

StatusFileSize
new71.02 KB

sure.
And when i installed the rest ui module itself the rest ui resources gets enabled as i attached....
My Drupal version: 8.5.3
php :7.0
React comments : 8.x.1-dev(development version)

Once again Void,
Can u provide steps after enabling react_comments module..?

Thanks

Manoj Raj.R’s picture

Void,
Can u suggest me the sites using react comments?
Waiting for the reply

minnur’s picture

There are no specific steps for the module to be enabled. Ideally you would just install it and you should be all set. Make sure you have comments module enabled.

void--’s picture

Status: Active » Closed (cannot reproduce)

Manoj,

I'm not sure what's going on with your site, it's really strange that your rest resources are enabled but still return 404. Are you able to visit the endpoints directly in the browser? Try clearing cache and visiting /react-comments/me?_format=json

For now I'm going to mark this as closed cause we're unable to reproduce your issue. If you find any more relevant details feel free to post them here and we'll keep trying to help you diagnose your issue.

Best,
Theo

Manoj Raj.R’s picture

Status: Closed (cannot reproduce) » Fixed

Void
Making this Fixed, since it worked/applied with clearing cache.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.