302 found error | Community
Skip to main content
Level 4
February 8, 2023
Solved

302 found error

  • February 8, 2023
  • 2 replies
  • 1750 views

I am hitting an endpoint and getting the below error in the network tab. 

Also, I'm getting 302 not found error for the resource.

Can anyone clarify what exactly can be the issue?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ritesh_Mittal

Hi @goyalkritika ,

 

I see the URLs do not have extension, so my understanding is you have set-up vanity/short URLs. Now, regarding the error, have you checked the error logs, you should find something over there. 404 means you do not have access so if you are using any system user within your service implementation/Sling Model class, just make sure the system user has the right access.

If this does not resolve your issue, then I need some more information like what custom configurations, redirects, etc you have done along with logs.

 

Thanks,

Ritesh Mittal

2 replies

Jagadeesh_Prakash
Community Advisor
Community Advisor
February 8, 2023

@goyalkritika  from the screenshot i see that their is some custom logic that you have written to read the query params. Can you check if your logic is correct and their is not redirects happening

 

I totally see that this issue is because of your custom code. 

Ritesh_Mittal
Community Advisor and Adobe Champion
Ritesh_MittalCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 8, 2023

Hi @goyalkritika ,

 

I see the URLs do not have extension, so my understanding is you have set-up vanity/short URLs. Now, regarding the error, have you checked the error logs, you should find something over there. 404 means you do not have access so if you are using any system user within your service implementation/Sling Model class, just make sure the system user has the right access.

If this does not resolve your issue, then I need some more information like what custom configurations, redirects, etc you have done along with logs.

 

Thanks,

Ritesh Mittal