Spring boot microservice 403 issue

Hello, I am writing to bring to your attention an issue that I am facing with the microservice I developed. When making an API call to the routes, the microservice is returning a 403 error.

The microservice is successfully deployed, and I have thoroughly tested it locally using Postman, where the API calls worked as expected. However, when deployed on the host server, the 403 error occurs.

Here is an example of the API call I am using:

String API_URL = “https://apollo-microservice.onrender.com/api/user/authenticate”;
URL url = new URL(API_AUTH_URL);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestProperty(“Content-Type”, “application/json”);

I have double-checked the authentication mechanism in the methods and ensured that the necessary permissions are set correctly. I am unable to pinpoint the exact reason for the 403 error.

I am seeking your assistance in troubleshooting and resolving this issue. Could you kindly review the microservice’s configuration and logs to identify any potential causes of the 403 error?

If you require any additional information or logs from the microservice, please let me know, and I will be more than willing to provide them to facilitate the debugging process.

Hi there,

We need more information to let us look into this issue. A 403 response would likely come from your application.

Please use open a ticket directly with us using the Help menu on our dashboard.


Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.