EC2 Java Spring Boot App Request Problem

0

Hi everyone, I have a java spring boot application. The application scrapes some pages with jsoup. On localhost everything works fine but i set up ec2 server with elastic beanstalk and i am trying to request my api but api response with "java.net.SocketTimeoutException: Connect timed out" so what i am supposed to do.

  • What are the security group settings for your Beanstalk? Does it allow outbound connections? Can you test it with something like amazon.com to make sure? If that is ok then it is very possible that the destination API is blocking traffic from AWS to prevent scraping at scale. Can you share the site where you're getting the timeout?

  • i have tried and the api works with another url but url i want doesn't work still.

Wallog
asked 5 months ago287 views
2 Answers
0

Make sure CORS is enabled for your application to scrape external pages.

profile pictureAWS
MODERATOR
answered 5 months ago
0

i have tried and the api works with another url but url i want doesn't work still.

Wallog
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions